Module com.machinezoo.noexception
Interface ThrowingIntPredicate
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingIntPredicate
Variation ofIntPredicate
that allows throwing checked exceptions.ThrowingIntPredicate
is usually implemented by a lambda and passed toCheckedExceptionHandler.fromIntPredicate(ThrowingIntPredicate)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
test(int value)
Variation ofIntPredicate.test(int)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
test
boolean test(int value) throws Throwable
Variation ofIntPredicate.test(int)
that allows throwing checked exceptions.- Parameters:
-
value
- seeIntPredicate.test(int)
- Returns:
-
see
IntPredicate.test(int)
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromIntPredicate(ThrowingIntPredicate)
,IntPredicate.test(int)
-
-