Class MutableInt


  • public class MutableInt
    extends Object
    This is a non-thread safe mutable int.
    • Constructor Detail

      • MutableInt

        public MutableInt​(int i)
        Parameters:
        i - The initial int value to encapsulate.
    • Method Detail

      • increment

        public void increment()
        Adds 1 to the curren value.
      • getValue

        public int getValue()
        Returns:
        Retrieves the current value of the MutableInt.