org.datamanager.passiveentityvalue
Class DoubleEntityValue
java.lang.Object
|
+--org.datamanager.passiveentityvalue.NumberEntityValue
|
+--org.datamanager.passiveentityvalue.DoubleEntityValue
- All Implemented Interfaces:
- Comparable, EntityValue, NumericEntityValue, PassiveEntityValue, Serializable
- public class DoubleEntityValue
- extends NumberEntityValue
DoubleEntityValue should give us all the functionality we need for working
with double values. More explicit documentation given at NumberEntityValue
- See Also:
NumberEntityValue
,
Serialized Form
Constructor Summary |
DoubleEntityValue()
The default value for DoubleEntityValue is 0.0 |
DoubleEntityValue(double value)
Create an DoubleEntityValue with the indicated value. |
Methods inherited from class org.datamanager.passiveentityvalue.NumberEntityValue |
add, add, add, compareTo, compareTo, compareTo, divideBy, divideBy, divideBy, equals, equals, equals, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isInRange, isInRange, isLesserThan, isLesserThan, isLesserThan, isLesserThanOrEqualTo, isLesserThanOrEqualTo, isLesserThanOrEqualTo, multiplyBy, multiplyBy, multiplyBy, subtract, subtract, subtract |
DoubleEntityValue
public DoubleEntityValue()
- The default value for DoubleEntityValue is 0.0
DoubleEntityValue
public DoubleEntityValue(double value)
- Create an DoubleEntityValue with the indicated value.
hashCode
public int hashCode()
- Returns the hashCode of an equivalent Double object.
- Specified by:
hashCode
in interface PassiveEntityValue
- Specified by:
hashCode
in class NumberEntityValue
getNearestInt
public int getNearestInt()
- Specified by:
getNearestInt
in interface NumericEntityValue
- Specified by:
getNearestInt
in class NumberEntityValue
getFloor
public int getFloor()
- Specified by:
getFloor
in interface NumericEntityValue
- Specified by:
getFloor
in class NumberEntityValue
getCeiling
public int getCeiling()
- Specified by:
getCeiling
in interface NumericEntityValue
- Specified by:
getCeiling
in class NumberEntityValue
getNearestDouble
public double getNearestDouble()
- Specified by:
getNearestDouble
in interface NumericEntityValue
- Specified by:
getNearestDouble
in class NumberEntityValue
toString
public String toString()
- Specified by:
toString
in interface NumericEntityValue
- Specified by:
toString
in class NumberEntityValue
DBGetValue
protected double DBGetValue()
DBSetValue
protected void DBSetValue(double value)
See the Helium Website