org.datamanager.passiveentityvalue
Class NumberEntityValue

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

public abstract class NumberEntityValue
extends Object
implements NumericEntityValue

NumberEntityValue is an abstract parent class for Double- and IntegerEntityValues.

See Also:
Serialized Form

Constructor Summary
NumberEntityValue()
           
 
Method Summary
 void add(double addend)
           
 void add(Number addend)
           
 void add(NumericEntityValue addend)
           
 int compareTo(double d)
           
 int compareTo(NumericEntityValue n)
           
 int compareTo(Object o)
           
 void divideBy(double divisor)
           
 void divideBy(Number divisor)
           
 void divideBy(NumericEntityValue divisor)
           
 boolean equals(double d)
           
 boolean equals(NumericEntityValue n)
           
 boolean equals(Object o)
           
abstract  int getCeiling()
           
abstract  int getFloor()
           
abstract  double getNearestDouble()
           
abstract  int getNearestInt()
           
abstract  int hashCode()
           
 boolean isGreaterThan(double low)
           
 boolean isGreaterThan(Number low)
           
 boolean isGreaterThan(NumericEntityValue low)
           
 boolean isGreaterThanOrEqualTo(double low)
           
 boolean isGreaterThanOrEqualTo(Number low)
           
 boolean isGreaterThanOrEqualTo(NumericEntityValue low)
           
 boolean isInRange(double low, double high)
           
 boolean isInRange(NumericEntityValue low, NumericEntityValue high)
           
 boolean isLesserThan(double high)
           
 boolean isLesserThan(Number high)
           
 boolean isLesserThan(NumericEntityValue high)
           
 boolean isLesserThanOrEqualTo(double high)
           
 boolean isLesserThanOrEqualTo(Number high)
           
 boolean isLesserThanOrEqualTo(NumericEntityValue high)
           
 void multiplyBy(double multiplier)
           
 void multiplyBy(Number multiplier)
           
 void multiplyBy(NumericEntityValue multiplier)
           
 void subtract(double subtrahend)
           
 void subtract(Number subtrahend)
           
 void subtract(NumericEntityValue subtrahend)
           
abstract  String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumberEntityValue

public NumberEntityValue()
Method Detail

compareTo

public int compareTo(NumericEntityValue n)
Specified by:
compareTo in interface NumericEntityValue

compareTo

public int compareTo(double d)

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface NumericEntityValue

isInRange

public boolean isInRange(NumericEntityValue low,
                         NumericEntityValue high)
Specified by:
isInRange in interface NumericEntityValue

isInRange

public boolean isInRange(double low,
                         double high)
Specified by:
isInRange in interface NumericEntityValue

isGreaterThan

public boolean isGreaterThan(NumericEntityValue low)
Specified by:
isGreaterThan in interface NumericEntityValue

isGreaterThan

public boolean isGreaterThan(Number low)

isGreaterThan

public boolean isGreaterThan(double low)
Specified by:
isGreaterThan in interface NumericEntityValue

isGreaterThanOrEqualTo

public boolean isGreaterThanOrEqualTo(NumericEntityValue low)
Specified by:
isGreaterThanOrEqualTo in interface NumericEntityValue

isGreaterThanOrEqualTo

public boolean isGreaterThanOrEqualTo(Number low)

isGreaterThanOrEqualTo

public boolean isGreaterThanOrEqualTo(double low)
Specified by:
isGreaterThanOrEqualTo in interface NumericEntityValue

isLesserThan

public boolean isLesserThan(NumericEntityValue high)
Specified by:
isLesserThan in interface NumericEntityValue

isLesserThan

public boolean isLesserThan(Number high)

isLesserThan

public boolean isLesserThan(double high)
Specified by:
isLesserThan in interface NumericEntityValue

isLesserThanOrEqualTo

public boolean isLesserThanOrEqualTo(NumericEntityValue high)
Specified by:
isLesserThanOrEqualTo in interface NumericEntityValue

isLesserThanOrEqualTo

public boolean isLesserThanOrEqualTo(Number high)

isLesserThanOrEqualTo

public boolean isLesserThanOrEqualTo(double high)
Specified by:
isLesserThanOrEqualTo in interface NumericEntityValue

equals

public boolean equals(NumericEntityValue n)
Specified by:
equals in interface NumericEntityValue

equals

public boolean equals(double d)
Specified by:
equals in interface NumericEntityValue

equals

public boolean equals(Object o)
Specified by:
equals in interface NumericEntityValue
Overrides:
equals in class Object

hashCode

public abstract int hashCode()
Specified by:
hashCode in interface PassiveEntityValue
Overrides:
hashCode in class Object

getNearestInt

public abstract int getNearestInt()
Specified by:
getNearestInt in interface NumericEntityValue

getFloor

public abstract int getFloor()
Specified by:
getFloor in interface NumericEntityValue

getCeiling

public abstract int getCeiling()
Specified by:
getCeiling in interface NumericEntityValue

getNearestDouble

public abstract double getNearestDouble()
Specified by:
getNearestDouble in interface NumericEntityValue

toString

public abstract String toString()
Specified by:
toString in interface NumericEntityValue
Overrides:
toString in class Object

add

public void add(NumericEntityValue addend)
Specified by:
add in interface NumericEntityValue

add

public void add(Number addend)

add

public void add(double addend)
Specified by:
add in interface NumericEntityValue

subtract

public void subtract(NumericEntityValue subtrahend)
Specified by:
subtract in interface NumericEntityValue

subtract

public void subtract(Number subtrahend)

subtract

public void subtract(double subtrahend)
Specified by:
subtract in interface NumericEntityValue

multiplyBy

public void multiplyBy(NumericEntityValue multiplier)
Specified by:
multiplyBy in interface NumericEntityValue

multiplyBy

public void multiplyBy(Number multiplier)

multiplyBy

public void multiplyBy(double multiplier)
Specified by:
multiplyBy in interface NumericEntityValue

divideBy

public void divideBy(NumericEntityValue divisor)
Specified by:
divideBy in interface NumericEntityValue

divideBy

public void divideBy(Number divisor)

divideBy

public void divideBy(double divisor)
Specified by:
divideBy in interface NumericEntityValue


See the Helium Website