static class Average.Engine.LongEngine extends Average.Engine
Average.Engine.DoubleEngine, Average.Engine.FloatEngine, Average.Engine.IntegerEngine, Average.Engine.LongEngine
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
Average.Engine
accept
in class Average.Engine
input
- data valueAggregatorException
java.lang.Number result()
Average.Engine
result
in class Average.Engine