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

public Interface CheckedPredicate<T>

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

A Predicate that allows for checked exceptions.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public static <T> Predicate<T>
sneaky(CheckedPredicate<T> predicate)

public boolean

Returns:

true if the input argument matches the predicate, otherwise false
test
(T
the input argument
t
)

Evaluates this predicate on the given argument.

public static <T> Predicate<T>
public static <T> Predicate<T>

Method Detail

sneakyback to summary
public static <T> Predicate<T> sneaky(CheckedPredicate<T> predicate)
See Also
Sneaky#predicate(CheckedPredicate)
testback to summary
public boolean test(T t) throws Throwable

Evaluates this predicate on the given argument.

Parameters
t:T

the input argument

Returns:boolean

true if the input argument matches the predicate, otherwise false

uncheckedback to summary
public static <T> Predicate<T> unchecked(CheckedPredicate<T> predicate)
See Also
Unchecked#predicate(CheckedPredicate)
uncheckedback to summary
public static <T> Predicate<T> unchecked(CheckedPredicate<T> function, Consumer<Throwable> handler)
See Also
Unchecked#predicate(CheckedPredicate, Consumer)