|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.trinetwatch.ruleset.Comparison
Class Comparison defines a the minimum numeric value for a status level.
Constructor Summary | |
Comparison(StatusLevelTag statusLevel,
java.lang.Number minValue)
Creates a Comparison object. |
Method Summary | |
boolean |
checkMinValue(java.lang.Number val)
Checks if the given object 'val' is greater than or equal to the 'minValue'. |
int |
compareTo(java.lang.Number obj)
Compares this object with the specified object 'obj'. |
java.lang.Number |
getMinValue()
Returns the handle of the object containing the "minimum" numeric value stored in this object. |
StatusLevelTag |
getStatusLevel()
Returns the handle of the StatusLevelTag for this object. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Comparison(StatusLevelTag statusLevel, java.lang.Number minValue)
statusLevel
- handle of a StatusLevelTag object.minValue
- an object containing the minimum numeric value to
be associated with the given status level (such as an 'Integer',
'Double', etc.)Method Detail |
public boolean checkMinValue(java.lang.Number val)
val
- an object which implements the 'Comparable' interface,
such as 'Integer', 'Double', etc.
java.lang.ClassCastException
- if the specified object's type
prevents it from being compared to this object.public int compareTo(java.lang.Number obj)
obj
- an object to compare to.
java.lang.ClassCastException
- if the specified object's type
prevents it from being compared to this object.public StatusLevelTag getStatusLevel()
public java.lang.Number getMinValue()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |