Searched refs:NullComparator (Results 1 – 2 of 2) sorted by relevance
64 final static class NullComparator<T> implements Comparator<T>, Serializable { class in Comparators71 NullComparator(boolean nullFirst, Comparator<? super T> real) { in NullComparator() method in Comparators.NullComparator90 … return new NullComparator<>(nullFirst, real == null ? other : real.thenComparing(other)); in thenComparing()95 return new NullComparator<>(!nullFirst, real == null ? null : real.reversed()); in reversed()
378 return new Comparators.NullComparator<>(true, comparator); in nullsFirst()399 return new Comparators.NullComparator<>(false, comparator); in nullsLast()