E
- The kind of thrown exception or error.@FunctionalInterface
public interface FailableLongPredicate<E extends java.lang.Throwable>
LongPredicate
that declares a Throwable
.Modifier and Type | Field and Description |
---|---|
static FailableLongPredicate |
FALSE
FALSE singleton
|
static FailableLongPredicate |
TRUE
TRUE singleton
|
Modifier and Type | Method and Description |
---|---|
default FailableLongPredicate<E> |
and(FailableLongPredicate<E> other)
Returns a composed
FailableLongPredicate like LongPredicate.and(LongPredicate) . |
static <E extends java.lang.Throwable> |
falsePredicate()
Returns The FALSE singleton.
|
default FailableLongPredicate<E> |
negate()
Returns a predicate that negates this predicate.
|
default FailableLongPredicate<E> |
or(FailableLongPredicate<E> other)
Returns a composed
FailableLongPredicate like LongPredicate.and(LongPredicate) . |
boolean |
test(long value)
Tests the predicate.
|
static <E extends java.lang.Throwable> |
truePredicate()
Returns The TRUE singleton.
|
static final FailableLongPredicate FALSE
static final FailableLongPredicate TRUE
static <E extends java.lang.Throwable> FailableLongPredicate<E> falsePredicate()
E
- The kind of thrown exception or error.static <E extends java.lang.Throwable> FailableLongPredicate<E> truePredicate()
E
- The kind of thrown exception or error.default FailableLongPredicate<E> and(FailableLongPredicate<E> other)
FailableLongPredicate
like LongPredicate.and(LongPredicate)
.other
- a predicate that will be logically-ANDed with this predicate.FailableLongPredicate
like LongPredicate.and(LongPredicate)
.java.lang.NullPointerException
- if other is nulldefault FailableLongPredicate<E> negate()
default FailableLongPredicate<E> or(FailableLongPredicate<E> other)
FailableLongPredicate
like LongPredicate.and(LongPredicate)
.other
- a predicate that will be logically-ORed with this predicate.FailableLongPredicate
like LongPredicate.and(LongPredicate)
.java.lang.NullPointerException
- if other is nullboolean test(long value) throws E extends java.lang.Throwable
value
- the parameter for the predicate to accept.true
if the input argument matches the predicate, false
otherwise.E
- Thrown when the consumer fails.E extends java.lang.Throwable
Copyright © 2010 - 2023 Adobe. All Rights Reserved