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