Class Sum
- java.lang.Object
-
- uk.gov.gchq.koryphe.binaryoperator.KorypheBinaryOperator<Number>
-
- uk.gov.gchq.koryphe.impl.binaryoperator.NumericAggregateFunction
-
- uk.gov.gchq.koryphe.impl.binaryoperator.Sum
-
- All Implemented Interfaces:
BiFunction<Number,Number,Number>
,BinaryOperator<Number>
public class Sum extends NumericAggregateFunction
ASum
is aBinaryOperator
that takes inNumber
s of the same type and calculates the sum. If you know the type of number that will be used then this can be set by calling setMode(NumberType), otherwise it will be automatically set for you using the class of the first number passed in.- See Also:
NumericAggregateFunction
-
-
Constructor Summary
Constructors Constructor Description Sum()
-
Method Summary
-
Methods inherited from class uk.gov.gchq.koryphe.impl.binaryoperator.NumericAggregateFunction
_apply
-
Methods inherited from class uk.gov.gchq.koryphe.binaryoperator.KorypheBinaryOperator
apply, equals, hashCode
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-