Interface Counter

    • Method Detail

      • increment

        long increment()
        Increment the counter.
        Returns:
        Current value.
      • decrement

        long decrement()
        Decrement the counter.
        Returns:
        Current value.
      • getValue

        long getValue()
        Get the current count.
        Returns:
        Current count.
      • increment

        long increment​(long i)
        Increment the counter by i. Note: the increment may be negative!
        Parameters:
        i - increment.
        Returns:
        Current count.