FailableDoublePredicate¶
- @FunctionalInterface public abstract interface org.apache.commons.lang3.function.FailableDoublePredicate<E extends Throwable>[source]¶
A functional interface like
DoublePredicatethat declares aThrowable.- Parameters:
<E> – The kind of thrown exception or error.
- Since:
3.11
Fields and constants¶
FALSE singleton |
|
TRUE singleton |
- @SuppressWarnings({"rawtypes"}) public static final FailableDoublePredicate FALSE[source]¶
FALSE singleton
- @SuppressWarnings({"rawtypes"}) public static final FailableDoublePredicate TRUE[source]¶
TRUE singleton
Methods¶
Returns a composed |
|
Gets the FALSE singleton. |
|
Returns a predicate that negates this predicate. |
|
Returns a composed |
|
Tests the predicate. |
|
Gets the TRUE singleton. |
- public default FailableDoublePredicate<E> and(FailableDoublePredicate<E> other)[source]¶
Returns a composed
FailableDoublePredicatelikeDoublePredicate#and(DoublePredicate).- Parameters:
other – A predicate that will be logically-ANDed with this predicate.
- Returns:
A composed
FailableDoublePredicatelikeDoublePredicate#and(DoublePredicate).- Throws:
java.lang.NullPointerException – Thrown if other is null.
- @SuppressWarnings({"unchecked"}) public static <E extends Throwable> FailableDoublePredicate<E> falsePredicate()[source]¶
Gets the FALSE singleton.
- Type parameters:
<E> – The kind of thrown exception or error.
- Returns:
The NOP singleton.
- public default FailableDoublePredicate<E> negate()[source]¶
Returns a predicate that negates this predicate.
- Returns:
A predicate that negates this predicate.
- public default FailableDoublePredicate<E> or(FailableDoublePredicate<E> other)[source]¶
Returns a composed
FailableDoublePredicatelikeDoublePredicate#and(DoublePredicate).- Parameters:
other – A predicate that will be logically-ORed with this predicate.
- Returns:
A composed
FailableDoublePredicatelikeDoublePredicate#and(DoublePredicate).- Throws:
java.lang.NullPointerException – Thrown if other is null.
- public abstract boolean test(double value) throws E[source]¶
Tests the predicate.
- Parameters:
value – The parameter for the predicate to accept.
- Returns:
trueif the input argument matches the predicate,falseotherwise.- Throws:
E – Thrown when the consumer fails.
- @SuppressWarnings({"unchecked"}) public static <E extends Throwable> FailableDoublePredicate<E> truePredicate()[source]¶
Gets the TRUE singleton.
- Type parameters:
<E> – The kind of thrown exception or error.
- Returns:
The NOP singleton.