- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
Comparator
that allows for checked exceptions.- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionint
Compares its two arguments for order.static <T> Comparator<T>
sneaky
(CheckedComparator<T> comparator) static <T> Comparator<T>
unchecked
(CheckedComparator<T> comparator) static <T> Comparator<T>
unchecked
(CheckedComparator<T> comparator, Consumer<Throwable> handler)
-
Method Details
-
compare
Compares its two arguments for order.- Throws:
Throwable
-
sneaky
-
unchecked
-
unchecked
-