Interface Counter

    • Method Detail

      • increment

        void increment()
        Increment the counter by one.
      • decrement

        void decrement()
        Decrement the counter by one.
      • increment

        void increment​(long n)
        Increment the counter by n.
        Parameters:
        n - the amount by which the counter will be increased
      • decrement

        void decrement​(long n)
        Decrement the counter by n.
        Parameters:
        n - the amount by which the counter will be decreased