@FunctionalInterface public interface CheckedComparator<T>
Comparator that allows for checked exceptions.| Modifier and Type | Method and Description |
|---|---|
int |
compare(T o1,
T o2)
Compares its two arguments for order.
|
static <T> Comparator<T> |
unchecked(CheckedComparator<T> comparator) |
static <T> Comparator<T> |
unchecked(CheckedComparator<T> comparator,
java.util.function.Consumer<Throwable> handler) |
int compare(T o1, T o2) throws Throwable
Throwablestatic <T> Comparator<T> unchecked(CheckedComparator<T> comparator)
Unchecked#comparator(CheckedComparator)}static <T> Comparator<T> unchecked(CheckedComparator<T> comparator, java.util.function.Consumer<Throwable> handler)
Unchecked#comparator(CheckedComparator, Consumer)}Copyright © 2016. All Rights Reserved.