|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EqualityComparator
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(java.lang.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(java.lang.Object a,
java.lang.Object b)
Tests the two parameter objects in the set over which the comparator is defined for equality. |
Method Detail |
---|
boolean isComparable(java.lang.Object o)
o
- Any java.lang.Object
boolean isEqualTo(java.lang.Object a, java.lang.Object b) throws java.lang.ClassCastException
a
- First Object to compareb
- Second Object to compare
java.lang.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 |