|
||||||||||
| 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 Form| Constructor 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 PassiveEntityValuehashCode in class NumberEntityValuepublic int getNearestInt()
getNearestInt in interface NumericEntityValuegetNearestInt in class NumberEntityValuepublic int getFloor()
getFloor in interface NumericEntityValuegetFloor in class NumberEntityValuepublic int getCeiling()
getCeiling in interface NumericEntityValuegetCeiling in class NumberEntityValuepublic double getNearestDouble()
getNearestDouble in interface NumericEntityValuegetNearestDouble in class NumberEntityValuepublic String toString()
toString in interface NumericEntityValuetoString in class NumberEntityValueprotected int DBGetValue()
protected void DBSetValue(int value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||