Class LongDoubleAccumulator

java.lang.Object
com.hazelcast.jet.accumulator.LongDoubleAccumulator

public class LongDoubleAccumulator extends Object
Mutable container of a long and a double value.
Since:
Jet 3.0
  • Constructor Details

    • LongDoubleAccumulator

      public LongDoubleAccumulator()
      Creates a new instance with values equal to 0.
    • LongDoubleAccumulator

      public LongDoubleAccumulator(long longValue, double doubleValue)
      Creates a new instance with the specified values.
  • Method Details

    • getLong

      public long getLong()
      Returns the long value.
    • setLong

      public void setLong(long value1)
      Sets the long value.
    • getDouble

      public double getDouble()
      Returns the double value.
    • setDouble

      public void setDouble(double value2)
      Sets the double value.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object