Package com.hazelcast.jet.accumulator
Class LongDoubleAccumulator
- java.lang.Object
-
- com.hazelcast.jet.accumulator.LongDoubleAccumulator
-
public class LongDoubleAccumulator extends java.lang.Object
Mutable container of along
and adouble
value.- Since:
- Jet 3.0
-
-
Constructor Summary
Constructors Constructor Description LongDoubleAccumulator()
Creates a new instance with values equal to 0.LongDoubleAccumulator(long longValue, double doubleValue)
Creates a new instance with the specified values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
double
getDouble()
Returns thedouble
value.long
getLong()
Returns thelong
value.int
hashCode()
void
setDouble(double value2)
Sets thedouble
value.void
setLong(long value1)
Sets thelong
value.java.lang.String
toString()
-
-
-
Method Detail
-
getLong
public long getLong()
Returns thelong
value.
-
setLong
public void setLong(long value1)
Sets thelong
value.
-
getDouble
public double getDouble()
Returns thedouble
value.
-
setDouble
public void setDouble(double value2)
Sets thedouble
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
-
-