Class DoubleAccumulator


  • public class DoubleAccumulator
    extends java.lang.Object
    Accumulator of a double value.
    Since:
    Jet 3.0
    • Constructor Detail

      • DoubleAccumulator

        public DoubleAccumulator()
        Creates a new instance with value == 0.
      • DoubleAccumulator

        public DoubleAccumulator​(double value)
        Creates a new instance with the specified value.
    • Method Detail

      • accumulate

        public DoubleAccumulator accumulate​(double v)
        Adds the value to this objects' value.
      • export

        public double export()
        Returns the current value.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object