com.machinezoo.noexception.throwing

Interface ThrowingComparator<T>

NoException » API Reference » com.machinezoo.noexception.throwing

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      int compare(T left, T right)
      Variation of Comparator#compare(Object, Object) that allows throwing checked exceptions.
    • Method Detail

      • compare

        int compare(T left,
                    T right)
             throws Exception
        Variation of Comparator#compare(Object, Object) that allows throwing checked exceptions.
        Parameters:
        left - see Comparator#compare(Object, Object)
        right - see Comparator#compare(Object, Object)
        Returns:
        see Comparator#compare(Object, Object)
        Throws:
        Exception - if unable to complete
        See Also:
        CheckedExceptionHandler.comparator(ThrowingComparator), Comparator#compare(Object, Object)