Interface Comparator<T1,T2>

All Known Implementing Classes:
InverseComparator

@Deprecated public interface Comparator<T1,T2>
Deprecated.
Used to compare two objects of a different or the same type.
  • Field Details

    • equalsComparator

      static final Comparator<?,?> equalsComparator
      Deprecated.
  • Method Details

    • compare

      Comparator.Relation compare(T1 o1, T2 o2)
      Deprecated.
      Compares the given objects which may not be null. Returning GREATER/SMALLER means that the first parameter is greater/smaller.
      Parameters:
      o1 - Non-null object
      o2 - Non-null object
      Returns:
      the relation of the objects. Should neither return GREATER_OR_EQUAL nor SMALLER_OR_EQUAL.
    • supportsOrdering

      boolean supportsOrdering()
      Deprecated.
      Returns:
      whether this comparator supports ordering of elements or not.