Package com.hazelcast.jet.accumulator
Class LongLongAccumulator
- java.lang.Object
-
- com.hazelcast.jet.accumulator.LongLongAccumulator
-
public class LongLongAccumulator extends java.lang.Object
Mutable container of twolong
values.- Since:
- Jet 3.0
-
-
Constructor Summary
Constructors Constructor Description LongLongAccumulator()
Creates a new instance with values equal to 0.LongLongAccumulator(long value1, long value2)
Creates a new instance with the specified values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add1(long amount)
Adds the supplied amount to the first value.void
add2(long amount)
Adds the supplied amount to the second value.boolean
equals(java.lang.Object o)
long
get1()
Returns the first value.long
get2()
Returns the second value.int
hashCode()
void
set1(long value1)
Sets the first value.void
set2(long value2)
Sets the second value.java.lang.String
toString()
-
-
-
Method Detail
-
get1
public long get1()
Returns the first value.
-
set1
public void set1(long value1)
Sets the first value.
-
get2
public long get2()
Returns the second value.
-
set2
public void set2(long value2)
Sets the second value.
-
add1
public void add1(long amount)
Adds the supplied amount to the first value.
-
add2
public void add2(long amount)
Adds the supplied amount to the second value.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-