Module ojalgo
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>myAggregatorprivate 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 booleanbooleanValue()bytebyteValue()doubledoubleValue()floatfloatValue()Nget()intintValue()voidinvoke(byte arg)voidinvoke(double arg)voidinvoke(float arg)voidinvoke(int arg)voidinvoke(long arg)voidinvoke(short arg)voidinvoke(N arg)longlongValue()AggregatorFunction<N>reset()shortshortValue()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:
booleanValuein interfaceNumberDefinition
-
byteValue
public byte byteValue()
- Specified by:
byteValuein interfaceNumberDefinition
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein interfaceNumberDefinition
-
floatValue
public float floatValue()
- Specified by:
floatValuein interfaceNumberDefinition
-
get
public N get()
- Specified by:
getin interfaceAccessScalar<N extends java.lang.Comparable<N>>
-
intValue
public int intValue()
- Specified by:
intValuein interfaceNumberDefinition
-
invoke
public void invoke(byte arg)
- Specified by:
invokein interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
invoke
public void invoke(double arg)
- Specified by:
invokein interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
invoke
public void invoke(float arg)
- Specified by:
invokein interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
invoke
public void invoke(int arg)
- Specified by:
invokein interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
invoke
public void invoke(long arg)
- Specified by:
invokein interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
invoke
public void invoke(N arg)
- Specified by:
invokein interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
invoke
public void invoke(short arg)
- Specified by:
invokein interfaceVoidFunction<N extends java.lang.Comparable<N>>
-
longValue
public long longValue()
- Specified by:
longValuein interfaceNumberDefinition
-
reset
public AggregatorFunction<N> reset()
- Specified by:
resetin interfaceAggregatorFunction<N extends java.lang.Comparable<N>>
-
shortValue
public short shortValue()
- Specified by:
shortValuein interfaceNumberDefinition
-
-