Top Description Methods
org.jooq.lambda.fi.util

public Interface CheckedComparator<T>

Annotations
@FunctionalInterface
Imports
java.util.Comparator, java.util.function.Consumer, org.jooq.lambda.Sneaky, .Unchecked

A Comparator that allows for checked exceptions.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public int
compare(T o1, T o2)

Compares its two arguments for order.

public static <T> Comparator<T>
sneaky(CheckedComparator<T> comparator)

public static <T> Comparator<T>
public static <T> Comparator<T>
unchecked(CheckedComparator<T> comparator, Consumer<Throwable> handler)

Method Detail

compareback to summary
public int compare(T o1, T o2) throws Throwable

Compares its two arguments for order.

sneakyback to summary
public static <T> Comparator<T> sneaky(CheckedComparator<T> comparator)
See Also
Sneaky#comparator(CheckedComparator)
uncheckedback to summary
public static <T> Comparator<T> unchecked(CheckedComparator<T> comparator)
See Also
Unchecked#comparator(CheckedComparator)
uncheckedback to summary
public static <T> Comparator<T> unchecked(CheckedComparator<T> comparator, Consumer<Throwable> handler)
See Also
Unchecked#comparator(CheckedComparator, Consumer)