Class Counter


  • public class Counter
    extends Object
    This class provides a simple zero-based counter with synchronized access.
    • Constructor Detail

      • Counter

        public Counter()
    • Method Detail

      • incrementAndGet

        public long incrementAndGet()
      • decrementAndGet

        public long decrementAndGet()
      • reset

        public void reset()
      • get

        public long get()