Class LongLongAccumulator


  • public class LongLongAccumulator
    extends java.lang.Object
    Mutable container of two long 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LongLongAccumulator

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

        public LongLongAccumulator​(long value1,
                                   long value2)
        Creates a new instance with the specified values.
    • 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 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