Interface Counter

    • Method Detail

      • inc

        void inc()
        Increment the current count by 1.
      • inc

        void inc​(long n)
        Increment the current count by the given value.
        Parameters:
        n - value to increment the current count by
      • dec

        void dec()
        Decrement the current count by 1.
      • dec

        void dec​(long n)
        Decrement the current count by the given value.
        Parameters:
        n - value to decrement the current count by
      • getCount

        long getCount()
        Returns the current count.
        Returns:
        current count