public class DoubleProperty extends Property
Title: DoubleProperty
Description: A double precision floating point property.
Copyright: Copyright 2003-2014, Knowledge Science Group, University of Calgary. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The Knowledge Science Group makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Modifier and Type | Field and Description |
---|---|
private double |
value
The value of this property.
|
Constructor and Description |
---|
DoubleProperty(double value)
Initializes the property to have the value indicated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Determines if the current property is equal to the given object.
|
static Property |
fromString(String property)
Creates a
DoubleProperty that is decoded from the given
String and returns it. |
double |
getDouble()
Retrieves the value of the property.
|
int |
getType()
Retrieves the type of property this is.
|
void |
setDouble(double value)
Sets the value of the property.
|
String |
toString()
Retreives the
String representation of the property. |
getBoolean, getByte, getChar, getFloat, getInteger, getLong, getShort, getString, setBoolean, setBtye, setChar, setFloat, setInteger, setLong, setShort, setString
public DoubleProperty(double value)
value
- The value to set the property at.public int getType()
getType
in class Property
Property.DOUBLE
.Property.BOOLEAN
,
Property.STRING
,
Property.INTEGER
,
Property.LONG
,
Property.FLOAT
,
Property.DOUBLE
,
Property.CHAR
,
Property.BYTE
,
Property.FLOAT
public String toString()
String
representation of the property.public boolean equals(Object object)
public static Property fromString(String property)
DoubleProperty
that is decoded from the given
String
and returns it.property
- The property in String
form.DoubleProperty
form.public double getDouble()