Class DoubleProperty

    • Constructor Detail

      • DoubleProperty

        public DoubleProperty​(java.lang.String key,
                              double defaultValue)
        Constructs a new DoubleProperty.
        Parameters:
        key - The property key
        defaultValue - The default value
    • Method Detail

      • put

        public boolean put​(java.lang.Double value)
        Description copied from class: AbstractProperty
        Sets this property to the specified value.
        Overrides:
        put in class AbstractToStringProperty<java.lang.Double>
        Parameters:
        value - The new value of this property
        Returns:
        true if something has changed (i.e. value is different than before)
      • toString

        protected java.lang.String toString​(java.lang.Double t)
        Description copied from class: AbstractToStringProperty
        Converts the string to an object of the given type.
        Specified by:
        toString in class AbstractToStringProperty<java.lang.Double>
        Parameters:
        t - The object.
        Returns:
        The string representing the object
      • parseAndPut

        public boolean parseAndPut​(java.lang.String value)
        parses and saves a double precision value
        Parameters:
        value - the value to be parsed
        Returns:
        true - preference value has changed false - parsing failed or preference value has not changed