Top Description Fields Methods
org.apache.commons.lang3.function

public Interface FailableDoublePredicate<E extends Throwable>

Annotations
@FunctionalInterface
Type Parameters
<E>
The kind of thrown exception or error.
Imports
java.util.Objects, java.util.function.DoublePredicate

A functional interface like DoublePredicate that declares a Throwable.
Since
3.11

Field Summary

Modifier and TypeField and Description
public static final FailableDoublePredicate<E extends Throwable>
FALSE

FALSE singleton

public static final FailableDoublePredicate<E extends Throwable>
TRUE

TRUE singleton

Method Summary

Modifier and TypeMethod and Description
public default FailableDoublePredicate<E>
and(final FailableDoublePredicate<E>
a predicate that will be logically-ANDed with this predicate.
other
)

Returns a composed FailableDoublePredicate like DoublePredicate#and(DoublePredicate).

public static <
The kind of thrown exception or error.
E extends Throwable
>
FailableDoublePredicate<E>

Returns:

The NOP singleton.
falsePredicate
()

Gets the FALSE singleton.

public default FailableDoublePredicate<E>

Returns:

a predicate that negates this predicate.
negate
()

Returns a predicate that negates this predicate.

public default FailableDoublePredicate<E>
or(final FailableDoublePredicate<E>
a predicate that will be logically-ORed with this predicate.
other
)

Returns a composed FailableDoublePredicate like DoublePredicate#and(DoublePredicate).

public boolean

Returns:

true if the input argument matches the predicate, false otherwise.
test
(double
the parameter for the predicate to accept.
value
)

Tests the predicate.

public static <
The kind of thrown exception or error.
E extends Throwable
>
FailableDoublePredicate<E>

Returns:

The NOP singleton.
truePredicate
()

Gets the TRUE singleton.

Field Detail

FALSEback to summary
public static final FailableDoublePredicate<E extends Throwable> FALSE

FALSE singleton

Annotations
@SuppressWarnings:rawtypes
TRUEback to summary
public static final FailableDoublePredicate<E extends Throwable> TRUE

TRUE singleton

Annotations
@SuppressWarnings:rawtypes

Method Detail

andback to summary
public default FailableDoublePredicate<E> and(final FailableDoublePredicate<E> other)

Returns a composed FailableDoublePredicate like DoublePredicate#and(DoublePredicate).

Parameters
other:FailableDoublePredicate<E>

a predicate that will be logically-ANDed with this predicate.

Returns:FailableDoublePredicate<E>

a composed FailableDoublePredicate like DoublePredicate#and(DoublePredicate).

Exceptions
NullPointerException:
if other is null
falsePredicateback to summary
public static <E extends Throwable> FailableDoublePredicate<E> falsePredicate()

Gets the FALSE singleton.

Parameters
<E>
The kind of thrown exception or error.
Returns:FailableDoublePredicate<E>

The NOP singleton.

Annotations
@SuppressWarnings:unchecked
negateback to summary
public default FailableDoublePredicate<E> negate()

Returns a predicate that negates this predicate.

Returns:FailableDoublePredicate<E>

a predicate that negates this predicate.

orback to summary
public default FailableDoublePredicate<E> or(final FailableDoublePredicate<E> other)

Returns a composed FailableDoublePredicate like DoublePredicate#and(DoublePredicate).

Parameters
other:FailableDoublePredicate<E>

a predicate that will be logically-ORed with this predicate.

Returns:FailableDoublePredicate<E>

a composed FailableDoublePredicate like DoublePredicate#and(DoublePredicate).

Exceptions
NullPointerException:
if other is null
testback to summary
public boolean test(double value) throws E

Tests the predicate.

Parameters
value:double

the parameter for the predicate to accept.

Returns:boolean

true if the input argument matches the predicate, false otherwise.

Exceptions
E:
Thrown when the consumer fails.
truePredicateback to summary
public static <E extends Throwable> FailableDoublePredicate<E> truePredicate()

Gets the TRUE singleton.

Parameters
<E>
The kind of thrown exception or error.
Returns:FailableDoublePredicate<E>

The NOP singleton.

Annotations
@SuppressWarnings:unchecked