类 Comparators
java.lang.Object
cn.taketoday.util.comparator.Comparators
Convenient entry point with generically typed factory methods
for common
Comparator variants.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Harry Yang
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <T> Comparator<T>Return aComparableadapter.static <T> Comparator<T>Return aComparableadapter which accepts null values and sorts them higher than non-null values.static <T> Comparator<T>nullsHigh(Comparator<T> comparator) Return a decorator for the given comparator which accepts null values and sorts them higher than non-null values.static <T> Comparator<T>nullsLow()Return aComparableadapter which accepts null values and sorts them lower than non-null values.static <T> Comparator<T>nullsLow(Comparator<T> comparator) Return a decorator for the given comparator which accepts null values and sorts them lower than non-null values.
-
构造器详细资料
-
Comparators
public Comparators()
-
-
方法详细资料
-
comparable
Return aComparableadapter. -
nullsLow
Return aComparableadapter which accepts null values and sorts them lower than non-null values. -
nullsLow
Return a decorator for the given comparator which accepts null values and sorts them lower than non-null values. -
nullsHigh
Return aComparableadapter which accepts null values and sorts them higher than non-null values. -
nullsHigh
Return a decorator for the given comparator which accepts null values and sorts them higher than non-null values.
-