|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.expression.spel.support.StandardTypeComparator
public class StandardTypeComparator
A simple basic TypeComparator implementation. It supports comparison of numbers and types implementing Comparable.
Constructor Summary | |
---|---|
StandardTypeComparator()
|
Method Summary | |
---|---|
boolean |
canCompare(java.lang.Object left,
java.lang.Object right)
Return true if the comparator can compare these two objects |
int |
compare(java.lang.Object left,
java.lang.Object right)
Compare two objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardTypeComparator()
Method Detail |
---|
public int compare(java.lang.Object left, java.lang.Object right) throws SpelEvaluationException
TypeComparator
compare
in interface TypeComparator
left
- the first objectright
- the second object
SpelEvaluationException
public boolean canCompare(java.lang.Object left, java.lang.Object right)
TypeComparator
canCompare
in interface TypeComparator
left
- the first objectright
- the second object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |