类 StandardTypeComparator
java.lang.Object
cn.taketoday.expression.spel.support.StandardTypeComparator
- 所有已实现的接口:
TypeComparator
A basic
TypeComparator implementation: supports comparison of
Number types as well as types implementing Comparable.- 从以下版本开始:
- 4.0
- 作者:
- Andy Clement, Juergen Hoeller, Giovanni Dall'Oglio Risso
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
StandardTypeComparator
public StandardTypeComparator()
-
-
方法详细资料
-
canCompare
从接口复制的说明:TypeComparatorReturntrueif the comparator can compare these two objects.- 指定者:
canCompare在接口中TypeComparator- 参数:
left- the first objectright- the second object- 返回:
trueif the comparator can compare these objects
-
compare
从接口复制的说明:TypeComparatorCompare two given objects.- 指定者:
compare在接口中TypeComparator- 参数:
left- the first objectright- the second object- 返回:
- 0 if they are equal, a negative integer if the first is smaller than the second, or a positive integer if the first is larger than the second
- 抛出:
SpelEvaluationException- 另请参阅:
-