java.lang.Object
net.anwiba.commons.lang.counter.Counter
All Implemented Interfaces:
ICounter

public class Counter extends Object implements ICounter
  • Constructor Details

    • Counter

      public Counter(long value)
    • Counter

      public Counter(long startValue, long maxValue)
  • Method Details

    • 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