static class Sum.Engine.LongEngine extends Sum.Engine
Sum.Engine.DoubleEngine, Sum.Engine.FloatEngine, Sum.Engine.LongEngine
Modifier and Type | Field and Description |
---|---|
private long |
sum |
Constructor and Description |
---|
LongEngine(long value)
Creates a new instance starting with an initial value
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
accept(java.lang.Number input)
Update the engine with the given value.
|
(package private) java.lang.Number |
result()
Get the (current) result of this engine.
|
create
LongEngine(long value)
value
- initial valuevoid accept(java.lang.Number input) throws AggregatorException
Sum.Engine
accept
in class Sum.Engine
input
- data valueAggregatorException
java.lang.Number result()
Sum.Engine
result
in class Sum.Engine