|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.datamanager.passiveentityvalue.NumberEntityValue | +--org.datamanager.passiveentityvalue.IntegerEntityValue
IntegerEntityValue should give us all the functionality we need for working with integer values. More explicit documentation given at NumberEntityValue
NumberEntityValue
,
Serialized FormConstructor Summary | |
IntegerEntityValue()
The default value for IntegerEntityValue is 0 |
|
IntegerEntityValue(int value)
Create an IntegerEntityValue with the indicated value. |
Method Summary | |
protected int |
DBGetValue()
|
protected void |
DBSetValue(int value)
|
int |
getCeiling()
The ceiling is the lowest integer greater than or equal to the stored value, or the stored value itself in this case. |
int |
getFloor()
The floor is the greatest integer less than or equal to the stored value, or the stored value itself in this case. |
double |
getNearestDouble()
|
int |
getNearestInt()
The nearest int is the value stored. |
int |
hashCode()
|
String |
toString()
|
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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public IntegerEntityValue()
public IntegerEntityValue(int value)
Method Detail |
public int hashCode()
hashCode
in interface PassiveEntityValue
hashCode
in class NumberEntityValue
public int getNearestInt()
getNearestInt
in interface NumericEntityValue
getNearestInt
in class NumberEntityValue
public int getFloor()
getFloor
in interface NumericEntityValue
getFloor
in class NumberEntityValue
public int getCeiling()
getCeiling
in interface NumericEntityValue
getCeiling
in class NumberEntityValue
public double getNearestDouble()
getNearestDouble
in interface NumericEntityValue
getNearestDouble
in class NumberEntityValue
public String toString()
toString
in interface NumericEntityValue
toString
in class NumberEntityValue
protected int DBGetValue()
protected void DBSetValue(int value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |