@FunctionalInterface public interface CheckedPredicate<T>
Predicate that allows for checked exceptions.| Modifier and Type | Method and Description |
|---|---|
boolean |
test(T t)
Evaluates this predicate on the given argument.
|
static <T> java.util.function.Predicate<T> |
unchecked(CheckedPredicate<T> predicate) |
static <T> java.util.function.Predicate<T> |
unchecked(CheckedPredicate<T> function,
java.util.function.Consumer<Throwable> handler) |
boolean test(T t) throws Throwable
t - the input argumenttrue if the input argument matches the predicate,
otherwise falseThrowablestatic <T> java.util.function.Predicate<T> unchecked(CheckedPredicate<T> predicate)
Unchecked#predicate(CheckedPredicate)}static <T> java.util.function.Predicate<T> unchecked(CheckedPredicate<T> function, java.util.function.Consumer<Throwable> handler)
Unchecked#predicate(CheckedPredicate, Consumer)}Copyright © 2016. All Rights Reserved.