Class MutableInteger

  • public class MutableInteger
    extends Object
    A more performant version of AtomicInteger 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

      • MutableInteger

        public MutableInteger()
      • MutableInteger

        public MutableInteger​(int value)
    • Method Detail

      • getAndIncrement

        public int getAndIncrement()
      • getAndIncrementBy

        public int getAndIncrementBy​(int i)
      • incrementAndGet

        public int incrementAndGet()
      • get

        public int get()
      • set

        public void set​(int value)
      • increase

        public void increase()
      • increment

        public void increment()
      • incrementBy

        public void incrementBy​(int i)
      • increase

        public void increase​(int i)
      • plus

        public void plus​(int i)
      • minus

        public void minus​(int i)