public class DoubleProperty extends Property
properties| Constructor and Description |
|---|
DoubleProperty(Properties properties,
String path)
Creates a Double property which has no default value.
|
DoubleProperty(Properties properties,
String path,
double defaultValue)
Creates a Double property.
|
DoubleProperty(Properties properties,
String path,
double minValue,
double maxValue)
Creates a Double property which has no default value.
|
DoubleProperty(Properties properties,
String path,
double defaultValue,
double minValue,
double maxValue)
Creates a Double property.
|
| Modifier and Type | Method and Description |
|---|---|
double |
get()
Retrieves the value of this double property according to these rules.
|
double |
get(double defaultValue)
Retrieves the value of this double property.
|
double |
set(double value)
Sets the value of this double property.
|
addTrigger, booleanValue, getDefaultValue, getInternal, getPath, getString, isSet, onChange, removeTrigger, setString, stringValue, toBooleanpublic DoubleProperty(Properties properties, String path, double defaultValue)
properties - Properties object which holds values for this property.path - Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".defaultValue - Default value.public DoubleProperty(Properties properties, String path)
properties - Properties object which holds values for this property.path - Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".public DoubleProperty(Properties properties, String path, double defaultValue, double minValue, double maxValue)
properties - Properties object which holds values for this property.path - Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".defaultValue - Default value.IllegalArgumentException - if defaultValue is not in
the range [minValue, maxValue].public DoubleProperty(Properties properties, String path, double minValue, double maxValue)
properties - Properties object which holds values for this property.path - Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".public double get()
public double get(double defaultValue)
public double set(double value)
Copyright © 2012–2015 Julian Hyde. All rights reserved.