Class AbstractBooleanFunction
java.lang.Object
com.github.basking2.sdsai.itrex.functions.AbstractAggregatingFunction<Object,Boolean>
com.github.basking2.sdsai.itrex.functions.bool.AbstractBooleanFunction
- All Implemented Interfaces:
FunctionInterface<Boolean>
,BiFunction<Iterator<?>,
EvaluationContext, Boolean>
- Direct Known Subclasses:
AndFunction
,NotFunction
,OrFunction
Perform a boolean function on all arguments.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.basking2.sdsai.itrex.functions.AbstractAggregatingFunction
AbstractAggregatingFunction.Result
-
Field Summary
Fields inherited from class com.github.basking2.sdsai.itrex.functions.AbstractAggregatingFunction
initialValue
-
Constructor Summary
ConstructorDescriptionAbstractBooleanFunction
(Boolean initialValue) Construct an function that will start aggregating values with initialValue as the first R value. -
Method Summary
Modifier and TypeMethodDescriptionabstract AbstractAggregatingFunction<Object,
Boolean>.Result booleanOperation
(Boolean b1, Boolean b2) Methods inherited from class com.github.basking2.sdsai.itrex.functions.AbstractAggregatingFunction
apply
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
AbstractBooleanFunction
Construct an function that will start aggregating values with initialValue as the first R value.If an implementation is summing numbers, initialValue may be 0. If an implementation is building a list, initialValue may be an empty list.
- Parameters:
initialValue
- An initial value.
-
-
Method Details
-
applyT
- Specified by:
applyT
in classAbstractAggregatingFunction<Object,
Boolean> - Parameters:
aBoolean
- Right value.o
- Left value.- Returns:
- A two-tuple which, if the left value is true, aggregation will continue.
-
booleanOperation
-