Class IntRef

    • Field Detail

      • value

        public int value
        The mutable int field
    • Constructor Detail

      • IntRef

        private IntRef​(int value)
        Private constructor with the value for the mutable int field.
        Parameters:
        value - the value for the mutable int field
    • Method Detail

      • of

        public static IntRef of​(int value)
        Creates an object with a mutable int value.
        Parameters:
        value - the initial value for the mutable field
        Returns:
        the object with the mutable int field
      • toString

        public String toString()
        Returns a string representation.
        Overrides:
        toString in class Object
        Returns:
        string representation