Package org.springframework.util.comparator
@NonNullApi
@NonNullFields
package org.springframework.util.comparator
Useful generic
java.util.Comparator
implementations,
such as an invertible comparator and a compound comparator.-
ClassDescriptionComparableComparator<T extends Comparable<T>>Deprecated.Convenient entry point with generically typed factory methods for common Spring
Comparator
variants.Compares objects based on an arbitrary class order.Deprecated.as of 6.1 in favor ofComparator.nullsLast(java.util.Comparator<? super T>)
andComparator.nullsFirst(java.util.Comparator<? super T>)
Comparator.naturalOrder()