public class StandardTypeComparator extends Object implements TypeComparator
TypeComparator implementation: supports comparison of
Number types as well as types implementing Comparable.| 构造器和说明 |
|---|
StandardTypeComparator() |
public boolean canCompare(@Nullable
Object left,
@Nullable
Object right)
TypeComparatortrue if the comparator can compare these two objects.canCompare 在接口中 TypeComparatorleft - the first objectright - the second objecttrue if the comparator can compare these objectspublic int compare(@Nullable
Object left,
@Nullable
Object right)
throws SpelEvaluationException
TypeComparatorcompare 在接口中 TypeComparatorleft - the first objectright - the second objectSpelEvaluationException