类 NullSafeComparator<T>

  • 类型参数:
    T - the type of objects that may be compared by this comparator
    所有已实现的接口:
    Comparator<T>

    public class NullSafeComparator<T>
    extends Object
    implements Comparator<T>
    A Comparator that will safely compare nulls to be lower or higher than other objects. Can decorate a given Comparator or work on Comparables.
    从以下版本开始:
    1.2.2
    作者:
    Keith Donald, Juergen Hoeller
    另请参阅:
    Comparable