Package tools.refinery.logic.term
Class TreapAggregator<R,T extends Comparable<? super T>>
java.lang.Object
tools.refinery.logic.term.TreapAggregator<R,T>
- All Implemented Interfaces:
Aggregator<R,
,T> StatefulAggregator<R,
T>
public class TreapAggregator<R,T extends Comparable<? super T>>
extends Object
implements StatefulAggregator<R,T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <R,
T extends Comparable<? super T>>
TreapAggregator<R, T> of
(Class<R> resultType, Class<T> inputType, ToMonoid<T, R> toMonoid, R unit, BinaryOperator<R> monoid) static <T extends Comparable<? super T>>
TreapAggregator<T, T> of
(Class<T> inputType, ToMonoid<T, T> toMonoid, T unit, BinaryOperator<T> monoid) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tools.refinery.logic.term.StatefulAggregator
aggregateStream, getEmptyResult
-
Constructor Details
-
TreapAggregator
-
-
Method Details
-
createEmptyAggregate
- Specified by:
createEmptyAggregate
in interfaceStatefulAggregator<R,
T extends Comparable<? super T>>
-
getResultType
- Specified by:
getResultType
in interfaceAggregator<R,
T extends Comparable<? super T>>
-
getInputType
- Specified by:
getInputType
in interfaceAggregator<R,
T extends Comparable<? super T>>
-
of
public static <R,T extends Comparable<? super T>> TreapAggregator<R,T> of(Class<R> resultType, Class<T> inputType, ToMonoid<T, R> toMonoid, R unit, BinaryOperator<R> monoid) -
of
public static <T extends Comparable<? super T>> TreapAggregator<T,T> of(Class<T> inputType, ToMonoid<T, T> toMonoid, T unit, BinaryOperator<T> monoid)
-