Package org.ojalgo.function.aggregator
Class AggregatorFunction.PredicateWrapper<N extends java.lang.Comparable<N>>
- java.lang.Object
-
- org.ojalgo.function.aggregator.AggregatorFunction.PredicateWrapper<N>
-
- All Implemented Interfaces:
java.util.function.Consumer<N>
,java.util.function.DoubleConsumer
,AggregatorFunction<N>
,BasicFunction
,VoidFunction<N>
,AccessScalar<N>
,NumberDefinition
- Enclosing interface:
- AggregatorFunction<N extends java.lang.Comparable<N>>
public static final class AggregatorFunction.PredicateWrapper<N extends java.lang.Comparable<N>> extends java.lang.Object implements AggregatorFunction<N>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.function.aggregator.AggregatorFunction
AggregatorFunction.PredicateWrapper<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends java.lang.Comparable<N>,F extends BasicFunction>, BasicFunction.Integratable<N extends java.lang.Comparable<N>,F extends BasicFunction>, BasicFunction.PlainUnary<T,R>
-
-
Field Summary
Fields Modifier and Type Field Description private AggregatorFunction<N>
myAggregator
private PredicateFunction<N>
myPredicate
-
Constructor Summary
Constructors Constructor Description PredicateWrapper(PredicateFunction<N> predicate, AggregatorFunction<N> aggregator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
booleanValue()
byte
byteValue()
double
doubleValue()
float
floatValue()
N
get()
int
intValue()
void
invoke(byte arg)
void
invoke(double arg)
void
invoke(float arg)
void
invoke(int arg)
void
invoke(long arg)
void
invoke(short arg)
void
invoke(N arg)
long
longValue()
AggregatorFunction<N>
reset()
short
shortValue()
Scalar<N>
toScalar()
-
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 org.ojalgo.function.VoidFunction
accept, accept, compose
-
-
-
-
Field Detail
-
myAggregator
private final AggregatorFunction<N extends java.lang.Comparable<N>> myAggregator
-
myPredicate
private final PredicateFunction<N extends java.lang.Comparable<N>> myPredicate
-
-
Constructor Detail
-
PredicateWrapper
PredicateWrapper(PredicateFunction<N> predicate, AggregatorFunction<N> aggregator)
-
-
Method Detail
-
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
public N get()
- Specified by:
get
in interfaceAccessScalar<N extends java.lang.Comparable<N>>
-
intValue
public int intValue()
- Specified by:
intValue
in interfaceNumberDefinition
-
invoke
public void invoke(byte arg)
- Specified by:
invoke
in interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
invoke
public void invoke(double arg)
- Specified by:
invoke
in interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
invoke
public void invoke(float arg)
- Specified by:
invoke
in interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
invoke
public void invoke(int arg)
- Specified by:
invoke
in interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
invoke
public void invoke(long arg)
- Specified by:
invoke
in interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
invoke
public void invoke(N arg)
- Specified by:
invoke
in interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
invoke
public void invoke(short arg)
- Specified by:
invoke
in interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
longValue
public long longValue()
- Specified by:
longValue
in interfaceNumberDefinition
-
reset
public AggregatorFunction<N> reset()
- Specified by:
reset
in interfaceAggregatorFunction<N extends java.lang.Comparable<N>>
-
shortValue
public short shortValue()
- Specified by:
shortValue
in interfaceNumberDefinition
-
-