-
- 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 CheckedLongPredicate
ALongPredicate
that allows for checked exceptions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.util.function.LongPredicate
sneaky(CheckedLongPredicate predicate)
boolean
test(long value)
Evaluates this predicate on the given argument.static java.util.function.LongPredicate
unchecked(CheckedLongPredicate predicate)
static java.util.function.LongPredicate
unchecked(CheckedLongPredicate function, java.util.function.Consumer<java.lang.Throwable> handler)
-
-
-
Method Detail
-
test
boolean test(long value) throws java.lang.Throwable
Evaluates this predicate on the given argument.- Parameters:
value
- the input argument- Returns:
true
if the input argument matches the predicate, otherwisefalse
- Throws:
java.lang.Throwable
-
sneaky
static java.util.function.LongPredicate sneaky(CheckedLongPredicate predicate)
-
unchecked
static java.util.function.LongPredicate unchecked(CheckedLongPredicate predicate)
-
unchecked
static java.util.function.LongPredicate unchecked(CheckedLongPredicate function, java.util.function.Consumer<java.lang.Throwable> handler)
-
-