@FunctionalInterface public interface ThrowingIntPredicate
IntPredicate
that allows throwing checked exceptions. ThrowingIntPredicate
is usually implemented by a lambda and passed to CheckedExceptionHandler.fromIntPredicate(ThrowingIntPredicate)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
boolean |
test(int value)
Variation of IntPredicate.test(int) that allows throwing checked exceptions.
|
boolean test(int value) throws Throwable
IntPredicate.test(int)
that allows throwing checked exceptions.
value
- see IntPredicate.test(int)
IntPredicate.test(int)
Throwable
- if unable to complete
CheckedExceptionHandler.fromIntPredicate(ThrowingIntPredicate)
, IntPredicate.test(int)
Copyright © 2017–2020 Robert Važan. All rights reserved.