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>>Comparator that adapts Comparables to the Comparator interface.Convenient entry point with generically typed factory methods for common Spring
Comparator
variants.Compares objects based on an arbitrary class order.A Comparator that will safely compare nulls to be lower or higher than other objects.