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 ofLongPredicatethat allows throwing checked exceptions.ThrowingLongPredicateis 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 booleantest(long value)Variation ofLongPredicate.test(long)that allows throwing checked exceptions.
-
-
-
Method Detail
-
test
boolean test(long value) throws ThrowableVariation 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)
-
-