@FunctionalInterface public interface CheckedComparator<T>
Comparator that allows for checked exceptions.| Modifier and Type | Method | Description |
|---|---|---|
int |
compare(T o1,
T o2) |
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) |
int compare(T o1, T o2) throws Throwable
Throwablestatic <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)
Copyright © 2018. All rights reserved.