Module com.machinezoo.noexception
Interface ThrowingLongPredicate
-
- 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 ThrowingLongPredicate
Variation ofLongPredicate
that allows throwing checked exceptions.ThrowingLongPredicate
is usually implemented by a lambda and passed toCheckedExceptionHandler.fromLongPredicate(ThrowingLongPredicate)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
test(long value)
Variation ofLongPredicate.test(long)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
test
boolean test(long value) throws Throwable
Variation ofLongPredicate.test(long)
that allows throwing checked exceptions.- Parameters:
-
value
- seeLongPredicate.test(long)
- Returns:
-
see
LongPredicate.test(long)
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromLongPredicate(ThrowingLongPredicate)
,LongPredicate.test(long)
-
-