|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.berkeley.guir.lib.util.NumComparison
Allows comparisons between arbitrary number objects.
This software is distributed under the Berkeley Software License.
Revisions: - GUIRLib-v1.0-1.0.0, Nov 25 1997, JH Created class - GUIRLib-v1.2-1.0.0, Jun 22 2000, JH Touched for GUIRLib release - GUIRLib-v1.3-1.0.0, Aug 11 2000, JH Touched for GUIRLib release - GUIRLib-v1.4-1.0.0, Aug 31 2000, JH Touched for GUIRLib release
Constructor Summary | |
NumComparison()
|
Method Summary | |
boolean |
isEqual(Object obj1,
Object obj2)
Sees if two Numbers are "equal" or not. |
boolean |
isGreaterThan(Object obj1,
Object obj2)
Sees if the first Number is "greater than" the second Number. |
boolean |
isGreaterThanOrEqual(Object obj1,
Object obj2)
Sees if the first Number is "greater than or equal" to the second Number. |
boolean |
isLessThan(Object obj1,
Object obj2)
Sees if the first Number is "less than" the second Number. |
boolean |
isLessThanOrEqual(Object obj1,
Object obj2)
Sees if the first Number is "less than or equal" to the second Number. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NumComparison()
Method Detail |
public boolean isEqual(Object obj1, Object obj2)
isEqual
in interface Comparison
obj1
- is some Object to be compared to obj2.obj2
- is some Object to be compared to obj1.NumberFormatException
- if either one is not a Number.public boolean isLessThan(Object obj1, Object obj2)
isLessThan
in interface Comparison
obj1
- is some Object to be compared to obj2.obj2
- is some Object to be compared to obj1.NumberFormatException
- if either one is not a Number.public boolean isLessThanOrEqual(Object obj1, Object obj2)
isLessThanOrEqual
in interface Comparison
obj1
- is some Object to be compared to obj2.obj2
- is some Object to be compared to obj1.NumberFormatException
- if either one is not a Number.public boolean isGreaterThan(Object obj1, Object obj2)
isGreaterThan
in interface Comparison
obj1
- is some Object to be compared to obj2.obj2
- is some Object to be compared to obj1.NumberFormatException
- if either one is not a Number.public boolean isGreaterThanOrEqual(Object obj1, Object obj2)
isGreaterThanOrEqual
in interface Comparison
obj1
- is some Object to be compared to obj2.obj2
- is some Object to be compared to obj1.NumberFormatException
- if either one is not a Number.
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |