Interface CheckedComparator<T>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


    @FunctionalInterface
    public interface CheckedComparator<T>
    A Comparator that allows for checked exceptions.
    • Method Summary

      Modifier and Type Method and Description
      int compare(T o1, T o2)
      Compares its two arguments for order.
    • Method Detail

      • compare

        int compare(T o1,
                    T o2)
             throws Throwable
        Compares its two arguments for order.
        Throws:
        Throwable