public class DoubleProperty extends AbstractProperty
Constructor and Description |
---|
DoubleProperty(DoubleProperty other)
DoubleProperty copy constructor.
|
DoubleProperty(java.lang.Enum<?> urn)
Construct a DoubleProperty with no defined value.
|
DoubleProperty(java.lang.Enum<?> urn,
double value)
Construct a DoubleProperty with a defined value.
|
DoubleProperty(java.lang.String urn)
Construct a DoubleProperty with no defined value.
|
DoubleProperty(java.lang.String urn,
double value)
Construct a DoubleProperty with a defined value.
|
Modifier and Type | Method and Description |
---|---|
DoubleProperty |
copy()
Create a copy of this property.
|
java.lang.Double |
getValue()
Get the value of this property.
|
void |
read(java.io.InputStream in)
Read this property from a stream.
|
void |
setValue(double value)
Set the value of this property.
|
void |
takeValue(Property p)
Take on the value of another property.
|
void |
write(java.io.OutputStream out)
Write this property to a stream.
|
fireChange, getURN, isDefined, setDefined, setEntity, toString, undefine
public DoubleProperty(java.lang.String urn)
urn
- The urn of this property.public DoubleProperty(java.lang.Enum<?> urn)
urn
- The urn of this property.public DoubleProperty(java.lang.String urn, double value)
urn
- The urn of this property.value
- The initial value of the property.public DoubleProperty(java.lang.Enum<?> urn, double value)
urn
- The urn of this property.value
- The initial value of the property.public DoubleProperty(DoubleProperty other)
other
- The DoubleProperty to copy.public java.lang.Double getValue()
Property
public void setValue(double value)
AbstractProperty.isDefined()
will return true.value
- The new value.public void takeValue(Property p)
Property
p
- The other property to inspect.public void write(java.io.OutputStream out) throws java.io.IOException
Property
out
- The stream to write to.java.io.IOException
- If the write fails.public void read(java.io.InputStream in) throws java.io.IOException
Property
in
- The stream to read from.java.io.IOException
- If the read fails.public DoubleProperty copy()
Property