org.datamanager.passiveentityvalue
Class IntegerEntityValue

java.lang.Object
  |
  +--org.datamanager.passiveentityvalue.NumberEntityValue
        |
        +--org.datamanager.passiveentityvalue.IntegerEntityValue
All Implemented Interfaces:
Comparable, EntityValue, NumericEntityValue, PassiveEntityValue, Serializable

public class IntegerEntityValue
extends NumberEntityValue

IntegerEntityValue should give us all the functionality we need for working with integer values. More explicit documentation given at NumberEntityValue

See Also:
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

IntegerEntityValue

public IntegerEntityValue()
The default value for IntegerEntityValue is 0


IntegerEntityValue

public IntegerEntityValue(int value)
Create an IntegerEntityValue with the indicated value.

Method Detail

hashCode

public int hashCode()
Specified by:
hashCode in interface PassiveEntityValue
Specified by:
hashCode in class NumberEntityValue

getNearestInt

public int getNearestInt()
The nearest int is the value stored.

Specified by:
getNearestInt in interface NumericEntityValue
Specified by:
getNearestInt in class NumberEntityValue

getFloor

public int getFloor()
The floor is the greatest integer less than or equal to the stored value, or the stored value itself in this case.

Specified by:
getFloor in interface NumericEntityValue
Specified by:
getFloor in class NumberEntityValue

getCeiling

public int getCeiling()
The ceiling is the lowest integer greater than or equal to the stored value, or the stored value itself in this case.

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 int DBGetValue()

DBSetValue

protected void DBSetValue(int value)


See the Helium Website