|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.calculation.BaseAccumulator<java.lang.Integer,java.lang.Integer> org.shapelogic.mathematics.MaxAccumulator
public class MaxAccumulator
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 | |
---|---|
MaxAccumulator(java.util.Iterator<java.lang.Integer> input)
|
Method Summary | |
---|---|
java.lang.Integer |
accumulate(java.lang.Integer element,
java.lang.Integer 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 MaxAccumulator(java.util.Iterator<java.lang.Integer> input)
Method Detail |
---|
public java.lang.Integer accumulate(java.lang.Integer element, java.lang.Integer out)
Accumulator
accumulate
in interface Accumulator<java.lang.Integer,java.lang.Integer>
accumulate
in class BaseAccumulator<java.lang.Integer,java.lang.Integer>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |