Class StreamFunctions.Sum
java.lang.Object
com.fluxtion.ext.streaming.api.stream.StreamFunctions.Sum
- All Implemented Interfaces:
Stateful
,Stateful.StatefulNumber<StreamFunctions.Sum>
- Enclosing class:
- StreamFunctions
public static class StreamFunctions.Sum extends java.lang.Object implements Stateful.StatefulNumber<StreamFunctions.Sum>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fluxtion.ext.streaming.api.Stateful
Stateful.StatefulNumber<S>
-
Constructor Summary
Constructors Constructor Description Sum()
-
Method Summary
Modifier and Type Method Description double
addValue(java.lang.Number val)
void
combine(StreamFunctions.Sum other, MutableNumber result)
void
deduct(StreamFunctions.Sum other, MutableNumber result)
void
reset()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fluxtion.ext.streaming.api.Stateful
combine, deduct, setBucketCount
-
Constructor Details
-
Sum
public Sum()
-
-
Method Details
-
addValue
public double addValue(java.lang.Number val) -
reset
public void reset() -
combine
- Specified by:
combine
in interfaceStateful.StatefulNumber<StreamFunctions.Sum>
-
deduct
- Specified by:
deduct
in interfaceStateful.StatefulNumber<StreamFunctions.Sum>
-