|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.shapelogic.calculation.BaseAccumulator<java.lang.Integer,java.lang.Long>
org.shapelogic.mathematics.SumAccumulator
public class SumAccumulator
AddAccumulator is an accumulator that add integers. Since this is used so much.
| Field Summary |
|---|
| Fields inherited from class org.shapelogic.calculation.BaseAccumulator |
|---|
_dirty, _input, _inputElement, _previousInputElement, _previousValue, _value |
| Constructor Summary | |
|---|---|
SumAccumulator(java.util.Iterator<java.lang.Integer> input)
|
|
| Method Summary | |
|---|---|
java.lang.Long |
accumulate(java.lang.Integer element,
java.lang.Long out)
return element + out; |
| Methods inherited from class org.shapelogic.calculation.BaseAccumulator |
|---|
getInput, getPreviousValue, getValue, hasNext, isDirty, next, remove, setup |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SumAccumulator(java.util.Iterator<java.lang.Integer> input)
| Method Detail |
|---|
public java.lang.Long accumulate(java.lang.Integer element,
java.lang.Long out)
Accumulator
accumulate in interface Accumulator<java.lang.Integer,java.lang.Long>accumulate in class BaseAccumulator<java.lang.Integer,java.lang.Long>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||