public class ComparatorUtil extends Object
| 构造器和说明 |
|---|
ComparatorUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Comparator<T> |
endWith(T... elements) |
static <T> Comparator<T> |
notSort() |
static <T> Comparator<T> |
relative(Comparator<T> comp,
T... elements) |
static <T extends Comparable<T>> |
relative(T... elements) |
static <T> Comparator<T> |
startWith(T... elements) |
public static <T> Comparator<T> notSort()
@SafeVarargs public static <T> Comparator<T> startWith(T... elements)
@SafeVarargs public static <T> Comparator<T> endWith(T... elements)
@SafeVarargs public static <T extends Comparable<T>> Comparator<T> relative(T... elements)
@SafeVarargs public static <T> Comparator<T> relative(Comparator<T> comp, T... elements)
Copyright © 2018. All rights reserved.