@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> java.util.Comparator<T> |
sneaky(CheckedComparator<T> comparator) |
|
static <T> java.util.Comparator<T> |
unchecked(CheckedComparator<T> comparator) |
|
static <T> java.util.Comparator<T> |
unchecked(CheckedComparator<T> comparator,
java.util.function.Consumer<java.lang.Throwable> handler) |
int compare(T o1, T o2) throws java.lang.Throwable
java.lang.Throwablestatic <T> java.util.Comparator<T> sneaky(CheckedComparator<T> comparator)
static <T> java.util.Comparator<T> unchecked(CheckedComparator<T> comparator)
static <T> java.util.Comparator<T> unchecked(CheckedComparator<T> comparator, java.util.function.Consumer<java.lang.Throwable> handler)
Copyright © 2018. All rights reserved.