Package com.hazelcast.jet.accumulator
Class LongLongAccumulator
java.lang.Object
com.hazelcast.jet.accumulator.LongLongAccumulator
Mutable container of two 
long values.- Since:
- Jet 3.0
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new instance with values equal to 0.LongLongAccumulator(long value1, long value2) Creates a new instance with the specified values.
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd1(long amount) Adds the supplied amount to the first value.voidadd2(long amount) Adds the supplied amount to the second value.booleanlongget1()Returns the first value.longget2()Returns the second value.inthashCode()voidset1(long value1) Sets the first value.voidset2(long value2) Sets the second value.toString()
- 
Constructor Details- 
LongLongAccumulatorpublic LongLongAccumulator()Creates a new instance with values equal to 0.
- 
LongLongAccumulatorpublic LongLongAccumulator(long value1, long value2) Creates a new instance with the specified values.
 
- 
- 
Method Details- 
get1public long get1()Returns the first value.
- 
set1public void set1(long value1) Sets the first value.
- 
get2public long get2()Returns the second value.
- 
set2public void set2(long value2) Sets the second value.
- 
add1public void add1(long amount) Adds the supplied amount to the first value.
- 
add2public void add2(long amount) Adds the supplied amount to the second value.
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-