Class MutableLong

  • public class MutableLong
    extends Object
    A more performant version of AtomicLong in cases where we do not have to worry about concurrency. So usually as a variable referenced in anonymous-inner or lambda or ...
    • Constructor Detail

      • MutableLong

        public MutableLong()
      • MutableLong

        public MutableLong​(long value)
    • Method Detail

      • getAndIncrement

        public long getAndIncrement()
      • incrementAndGet

        public long incrementAndGet()
      • get

        public long get()
      • set

        public void set​(long value)
      • increase

        public void increase()