|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A comparator does comparisons of objects in the universe the comparator is defined over. A comparator throws an InvalidElementException if passed a null element, or an element outside of its universe.
| Method Summary | |
boolean |
isComparable(java.lang.Object a)
Tests whether this comparator can compare this object |
boolean |
isEqualTo(java.lang.Object a,
java.lang.Object b)
Tests equality of two objects in the universe over which this comparator is defined. |
boolean |
isGreaterThan(java.lang.Object a,
java.lang.Object b)
Tests strict order of two objects in the universe over which this comparator is defined. |
boolean |
isGreaterThanOrEqualTo(java.lang.Object a,
java.lang.Object b)
Tests non-strict order of two objects in the universe over which this comparator is defined. |
boolean |
isLessThan(java.lang.Object a,
java.lang.Object b)
Tests strict order of two objects in the universe over which this comparator is defined. |
boolean |
isLessThanOrEqualTo(java.lang.Object a,
java.lang.Object b)
Tests non-strict order of two objects in the universe over which this comparator is defined. |
| Method Detail |
public boolean isEqualTo(java.lang.Object a,
java.lang.Object b)
throws InvalidElementException
a - b -
public boolean isGreaterThan(java.lang.Object a,
java.lang.Object b)
throws InvalidElementException
a - b -
public boolean isLessThan(java.lang.Object a,
java.lang.Object b)
throws InvalidElementException
a - b -
public boolean isGreaterThanOrEqualTo(java.lang.Object a,
java.lang.Object b)
throws InvalidElementException
a - b -
public boolean isLessThanOrEqualTo(java.lang.Object a,
java.lang.Object b)
throws InvalidElementException
a - b - public boolean isComparable(java.lang.Object a)
a -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||