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