Class LongRef

    • Field Detail

      • value

        public long value
        The mutable long field
    • Constructor Detail

      • LongRef

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

      • of

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

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