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 ofIntPredicatethat allows throwing checked exceptions.ThrowingIntPredicateis 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 booleantest(int value)Variation ofIntPredicate.test(int)that allows throwing checked exceptions.
-
-
-
Method Detail
-
test
boolean test(int value) throws ThrowableVariation 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)
-
-