public interface TypeComparator
Comparable
.Modifier and Type | Method and Description |
---|---|
boolean |
canCompare(java.lang.Object firstObject,
java.lang.Object secondObject)
Return true if the comparator can compare these two objects
|
int |
compare(java.lang.Object firstObject,
java.lang.Object secondObject)
Compare two objects.
|
int compare(java.lang.Object firstObject, java.lang.Object secondObject) throws EvaluationException
firstObject
- the first objectsecondObject
- the second objectEvaluationException
- if a problem occurs during comparison (or they are not comparable)boolean canCompare(java.lang.Object firstObject, java.lang.Object secondObject)
firstObject
- the first objectsecondObject
- the second object