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

public Interface FailableLongPredicate<E extends Throwable>

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

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

Field Summary

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

FALSE singleton

public static final FailableLongPredicate<E extends Throwable>
TRUE

TRUE singleton

Method Summary

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

Returns a composed FailableLongPredicate like LongPredicate#and(LongPredicate).

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

Returns:

The NOP singleton.
falsePredicate
()

Gets the FALSE singleton.

public default FailableLongPredicate<E>

Returns:

a predicate that negates this predicate.
negate
()

Returns a predicate that negates this predicate.

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

Returns a composed FailableLongPredicate like LongPredicate#and(LongPredicate).

public boolean

Returns:

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

Tests the predicate.

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

Returns:

The NOP singleton.
truePredicate
()

Gets the TRUE singleton.

Field Detail

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

FALSE singleton

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

TRUE singleton

Annotations
@SuppressWarnings:rawtypes

Method Detail

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

Returns a composed FailableLongPredicate like LongPredicate#and(LongPredicate).

Parameters
other:FailableLongPredicate<E>

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

Returns:FailableLongPredicate<E>

a composed FailableLongPredicate like LongPredicate#and(LongPredicate).

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

Gets the FALSE singleton.

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

The NOP singleton.

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

Returns a predicate that negates this predicate.

Returns:FailableLongPredicate<E>

a predicate that negates this predicate.

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

Returns a composed FailableLongPredicate like LongPredicate#and(LongPredicate).

Parameters
other:FailableLongPredicate<E>

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

Returns:FailableLongPredicate<E>

a composed FailableLongPredicate like LongPredicate#and(LongPredicate).

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

Tests the predicate.

Parameters
value:long

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> FailableLongPredicate<E> truePredicate()

Gets the TRUE singleton.

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

The NOP singleton.

Annotations
@SuppressWarnings:unchecked