|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines an equality comparison on a set of objects. It is up to individual implementations to define the set over which they are valid and to reject those objects which they cannot compare by throwing ClassCastExceptions.
Method Summary | |
boolean |
isComparable(Object o)
Allows a container (or any client) to find out whether an object is a member of the ordered set over which this comparator is defined. |
boolean |
isEqualTo(Object a,
Object b)
Tests the two parameter objects in the set over which the comparator is defined for equality. |
Method Detail |
public boolean isComparable(Object o)
o
- Any java.lang.Object
public boolean isEqualTo(Object a, Object b) throws ClassCastException
a
- First Object to compareb
- Second Object to compare
ClassCastException
- If either object passed in as a parameter
is not a member of the set over which the comparator is defined.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |