- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
IntPredicate
that allows for checked exceptions.- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntPredicate
sneaky
(CheckedIntPredicate predicate) boolean
test
(int value) Evaluates this predicate on the given argument.static IntPredicate
unchecked
(CheckedIntPredicate predicate) static IntPredicate
unchecked
(CheckedIntPredicate function, Consumer<Throwable> handler)
-
Method Details
-
test
Evaluates this predicate on the given argument.- Parameters:
value
- the input argument- Returns:
true
if the input argument matches the predicate, otherwisefalse
- Throws:
Throwable
-
sneaky
-
unchecked
-
unchecked
-