|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeComparator
Instances of a type comparator should be able to compare pairs of objects for equality, the specification of the
return value is the same as for Comparable
.
Method Summary | |
---|---|
boolean |
canCompare(Object firstObject,
Object secondObject)
Return true if the comparator can compare these two objects |
int |
compare(Object firstObject,
Object secondObject)
Compare two objects. |
Method Detail |
---|
int compare(Object firstObject, Object secondObject) throws EvaluationException
firstObject
- the first objectsecondObject
- the second object
EvaluationException
- if a problem occurs during comparison (or they are not comparable)boolean canCompare(Object firstObject, Object secondObject)
firstObject
- the first objectsecondObject
- the second object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |