Uses of Interface
org.apache.commons.lang3.function.FailablePredicate
-
Packages that use FailablePredicate Package Description org.apache.commons.lang3.function Provides functional interfaces to complement those injava.lang.function
and utilities for working with Java 8 lambdas.org.apache.commons.lang3.stream Provides utility classes to complement those injava.util.stream
. -
-
Uses of FailablePredicate in org.apache.commons.lang3.function
Fields in org.apache.commons.lang3.function declared as FailablePredicate Modifier and Type Field Description static FailablePredicate
FailablePredicate. FALSE
FALSE singletonstatic FailablePredicate
FailablePredicate. TRUE
TRUE singletonMethods in org.apache.commons.lang3.function that return FailablePredicate Modifier and Type Method Description default FailablePredicate<T,E>
FailablePredicate. and(FailablePredicate<? super T,E> other)
Returns a composedFailablePredicate
likePredicate.and(Predicate)
.static <T,E extends java.lang.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 java.lang.Throwable>
FailablePredicate<T,E>FailablePredicate. truePredicate()
Returns The FALSE TRUE.Methods in org.apache.commons.lang3.function with parameters of type FailablePredicate Modifier and Type Method Description default FailablePredicate<T,E>
FailablePredicate. and(FailablePredicate<? super T,E> other)
Returns a composedFailablePredicate
likePredicate.and(Predicate)
.static <T> java.util.function.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 java.lang.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 FailablePredicate Modifier and Type Method Description boolean
Streams.FailableStream. allMatch(FailablePredicate<O,?> predicate)
Returns whether all elements of this stream match the provided predicate.boolean
Streams.FailableStream. anyMatch(FailablePredicate<O,?> predicate)
Returns whether any elements of this stream match the provided predicate.Streams.FailableStream<O>
Streams.FailableStream. filter(FailablePredicate<O,?> predicate)
Returns a FailableStream consisting of the elements of this stream that match the given FailablePredicate.
-