Uses of Interface
org.apache.commons.lang3.function.FailablePredicate
Package
Description
Provides functional interfaces to complement those in
java.lang.function
and utilities for working with Java
8 lambdas.Provides utility classes to complement those in
java.util.stream
.-
Uses of FailablePredicate in org.apache.commons.lang3.function
Modifier and TypeFieldDescriptionstatic final FailablePredicate
FailablePredicate.FALSE
FALSE singletonstatic final FailablePredicate
FailablePredicate.TRUE
TRUE singletonModifier and TypeMethodDescriptiondefault FailablePredicate<T,
E> FailablePredicate.and
(FailablePredicate<? super T, E> other) Returns a composedFailablePredicate
likePredicate.and(Predicate)
.static <T,
E extends Throwable>
FailablePredicate<T,E> FailablePredicate.falsePredicate()
Returns The FALSE singleton.default FailablePredicate<T,
E> FailablePredicate.negate()
Returns a predicate that negates this predicate.default FailablePredicate<T,
E> FailablePredicate.or
(FailablePredicate<? super T, E> other) Returns a composedFailablePredicate
likePredicate.and(Predicate)
.static <T,
E extends Throwable>
FailablePredicate<T,E> FailablePredicate.truePredicate()
Returns The TRUE singleton.Modifier and TypeMethodDescriptiondefault FailablePredicate<T,
E> FailablePredicate.and
(FailablePredicate<? super T, E> other) Returns a composedFailablePredicate
likePredicate.and(Predicate)
.static <T> Predicate<T>
Failable.asPredicate
(FailablePredicate<T, ?> predicate) Converts the givenFailablePredicate
into a standardPredicate
.default FailablePredicate<T,
E> FailablePredicate.or
(FailablePredicate<? super T, E> other) Returns a composedFailablePredicate
likePredicate.and(Predicate)
.static <T,
E extends Throwable>
booleanFailable.test
(FailablePredicate<T, E> predicate, T object) Tests a predicate and rethrows any exception as aRuntimeException
. -
Uses of FailablePredicate in org.apache.commons.lang3.stream
Modifier and TypeMethodDescriptionboolean
Streams.FailableStream.allMatch
(FailablePredicate<T, ?> predicate) Returns whether all elements of this stream match the provided predicate.boolean
Streams.FailableStream.anyMatch
(FailablePredicate<T, ?> predicate) Returns whether any elements of this stream match the provided predicate.Streams.FailableStream.filter
(FailablePredicate<T, ?> predicate) Returns a FailableStream consisting of the elements of this stream that match the given FailablePredicate.