Package org.ojalgo.function.aggregator
Class AggregatorFunction.PredicateWrapper<N extends Comparable<N>>
java.lang.Object
org.ojalgo.function.aggregator.AggregatorFunction.PredicateWrapper<N>
- All Implemented Interfaces:
Consumer<N>
,DoubleConsumer
,AggregatorFunction<N>
,BasicFunction
,VoidFunction<N>
,AccessScalar<N>
,NumberDefinition
- Enclosing interface:
AggregatorFunction<N extends Comparable<N>>
public static final class AggregatorFunction.PredicateWrapper<N extends Comparable<N>>
extends Object
implements AggregatorFunction<N>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.function.aggregator.AggregatorFunction
AggregatorFunction.PredicateWrapper<N extends Comparable<N>>
Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends Comparable<N>,
F extends BasicFunction>, BasicFunction.Integratable<N extends Comparable<N>, F extends BasicFunction>, BasicFunction.PlainUnary<T, R> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AggregatorFunction
<N> private final PredicateFunction
<N> -
Constructor Summary
ConstructorsConstructorDescriptionPredicateWrapper
(PredicateFunction<N> predicate, AggregatorFunction<N> aggregator) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ojalgo.function.aggregator.AggregatorFunction
filter
Methods inherited from interface java.util.function.DoubleConsumer
andThen
Methods inherited from interface org.ojalgo.function.VoidFunction
accept, accept, compose
-
Field Details
-
myAggregator
-
myPredicate
-
-
Constructor Details
-
PredicateWrapper
PredicateWrapper(PredicateFunction<N> predicate, AggregatorFunction<N> aggregator)
-
-
Method Details
-
booleanValue
public boolean booleanValue()- Specified by:
booleanValue
in interfaceNumberDefinition
-
byteValue
public byte byteValue()- Specified by:
byteValue
in interfaceNumberDefinition
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in interfaceNumberDefinition
-
floatValue
public float floatValue()- Specified by:
floatValue
in interfaceNumberDefinition
-
get
- Specified by:
get
in interfaceAccessScalar<N extends Comparable<N>>
-
intValue
public int intValue()- Specified by:
intValue
in interfaceNumberDefinition
-
invoke
public void invoke(byte arg) - Specified by:
invoke
in interfaceVoidFunction<N extends Comparable<N>>
-
invoke
public void invoke(double arg) - Specified by:
invoke
in interfaceVoidFunction<N extends Comparable<N>>
-
invoke
public void invoke(float arg) - Specified by:
invoke
in interfaceVoidFunction<N extends Comparable<N>>
-
invoke
public void invoke(int arg) - Specified by:
invoke
in interfaceVoidFunction<N extends Comparable<N>>
-
invoke
public void invoke(long arg) - Specified by:
invoke
in interfaceVoidFunction<N extends Comparable<N>>
-
invoke
- Specified by:
invoke
in interfaceVoidFunction<N extends Comparable<N>>
-
invoke
public void invoke(short arg) - Specified by:
invoke
in interfaceVoidFunction<N extends Comparable<N>>
-
longValue
public long longValue()- Specified by:
longValue
in interfaceNumberDefinition
-
reset
- Specified by:
reset
in interfaceAggregatorFunction<N extends Comparable<N>>
-
shortValue
public short shortValue()- Specified by:
shortValue
in interfaceNumberDefinition
-
toScalar
- Specified by:
toScalar
in interfaceAggregatorFunction<N extends Comparable<N>>
-