@NonNullApi @NonNullFields

# 程序包 org.springframework.util.comparator

Useful generic `java.util.Comparator` implementations, such as an invertible comparator and a compound comparator.

请参阅: 说明

- 类概要
  类 | 说明
  --- | ---
  BooleanComparator | A `Comparator` for `Boolean` objects that can sort either `true` or `false` first.
  ComparableComparator<T extends Comparable<T>> | Comparator that adapts Comparables to the Comparator interface.
  Comparators | Convenient entry point with generically typed factory methods for common Spring `Comparator` variants.
  CompoundComparator<T> | 已过时 as of Spring Framework 5.0, in favor of the standard JDK 8 `Comparator.thenComparing(Comparator)`
  InstanceComparator<T> | Compares objects based on an arbitrary class order.
  InvertibleComparator<T> | 已过时 as of Spring Framework 5.0, in favor of the standard JDK 8 `Comparator.reversed()`
  NullSafeComparator<T> | A Comparator that will safely compare nulls to be lower or higher than other objects.

## 程序包org.springframework.util.comparator的说明

Useful generic `java.util.Comparator` implementations, such as an invertible comparator and a compound comparator.