Class DoubleRef

    • Field Detail

      • value

        public double value
        The mutable double field
    • Constructor Detail

      • DoubleRef

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

      • of

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

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