Class IntegerHolder


  • public final class IntegerHolder
    extends Object
    A mutable holder class to represent an int value. IntegerHolder objects are useful as out and inout parameters.
    • Field Detail

      • value

        public int value
        The int value held by this object.
    • Constructor Detail

      • IntegerHolder

        public IntegerHolder()
        Instantiates an IntegerHolder object with the initial value 0.
      • IntegerHolder

        public IntegerHolder​(int value)
        Instantiates an IntegerHolder object with the initial value given.
        Parameters:
        value - the initial value.