public class StandardTypeComparator extends Object implements TypeComparator
Constructor and Description |
---|
StandardTypeComparator() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCompare(Object left,
Object right)
Return true if the comparator can compare these two objects
|
int |
compare(Object left,
Object right)
Compare two objects.
|
public int compare(Object left, Object right) throws SpelEvaluationException
TypeComparator
compare
in interface TypeComparator
left
- the first objectright
- the second objectSpelEvaluationException
public boolean canCompare(Object left, Object right)
TypeComparator
canCompare
in interface TypeComparator
left
- the first objectright
- the second object