Class Counter

  • All Implemented Interfaces:
    ICounter

    public class Counter
    extends java.lang.Object
    implements ICounter
    • Constructor Summary

      Constructors 
      Constructor Description
      Counter​(long value)  
      Counter​(long startValue, long maxValue)  
    • Constructor Detail

      • Counter

        public Counter​(long value)
      • Counter

        public Counter​(long startValue,
                       long maxValue)
    • Method Detail

      • value

        public long value()
        Specified by:
        value in interface ICounter
      • next

        public long next()
        Specified by:
        next in interface ICounter
      • increment

        public void increment()
        Specified by:
        increment in interface ICounter
      • decrement

        public void decrement()
        Specified by:
        decrement in interface ICounter
      • previous

        public long previous()
        Specified by:
        previous in interface ICounter
      • add

        public void add​(int value)
      • minimum

        public long minimum()
      • maximum

        public long maximum()
      • set

        public void set​(long value)
        Specified by:
        set in interface ICounter
      • add

        public void add​(long value)
        Specified by:
        add in interface ICounter