Class MutableInt


  • public class MutableInt
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MutableInt()  
      MutableInt​(int value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(int amount)  
      int get()  
      void increment()  
      void set​(int i)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MutableInt

        public MutableInt​(int value)
      • MutableInt

        public MutableInt()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • increment

        public void increment()
      • get

        public int get()
      • set

        public void set​(int i)
      • add

        public void add​(int amount)