Class Counter


  • public class Counter
    extends Object
    Synchronized Counter.
    Author:
    Gerrit van Brakel
    • Constructor Detail

      • Counter

        public Counter​(int startValue)
    • Method Detail

      • decrease

        public long decrease()
      • decrease

        public long decrease​(long amount)
      • increase

        public long increase()
      • increase

        public long increase​(long amount)
      • clear

        public void clear()
      • getValue

        public long getValue()
      • setValue

        public void setValue​(long newValue)