Uses of Interface
org.apache.commons.lang3.function.FailablePredicate
Packages that use 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
Fields in org.apache.commons.lang3.function declared as FailablePredicateModifier and TypeFieldDescriptionstatic final FailablePredicate
FailablePredicate.FALSE
FALSE singletonstatic final FailablePredicate
FailablePredicate.TRUE
TRUE singletonMethods in org.apache.commons.lang3.function that return FailablePredicateModifier 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.Methods in org.apache.commons.lang3.function with parameters of type FailablePredicateModifier 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
Methods in org.apache.commons.lang3.stream with parameters of type FailablePredicateModifier 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.