Package | Description |
---|---|
org.apache.commons.lang3.function |
Provides functional interfaces to complement those in
java.lang.function and utilities for working with Java
8 lambdas. |
org.apache.commons.lang3.stream |
Provides utility classes to complement those in
java.util.stream . |
Modifier and Type | Field and Description |
---|---|
static FailablePredicate |
FailablePredicate.FALSE
FALSE singleton
|
static FailablePredicate |
FailablePredicate.TRUE
TRUE singleton
|
Modifier and Type | Method and Description |
---|---|
default FailablePredicate<T,E> |
FailablePredicate.and(FailablePredicate<? super T,E> other)
Returns a composed
FailablePredicate like Predicate.and(Predicate) . |
static <T,E extends Throwable> |
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 composed
FailablePredicate like Predicate.and(Predicate) . |
static <T,E extends Throwable> |
FailablePredicate.truePredicate()
Returns The FALSE TRUE.
|
Modifier and Type | Method and Description |
---|---|
default FailablePredicate<T,E> |
FailablePredicate.and(FailablePredicate<? super T,E> other)
Returns a composed
FailablePredicate like Predicate.and(Predicate) . |
static <T> Predicate<T> |
Failable.asPredicate(FailablePredicate<T,?> predicate)
Converts the given
FailablePredicate into a standard Predicate . |
default FailablePredicate<T,E> |
FailablePredicate.or(FailablePredicate<? super T,E> other)
Returns a composed
FailablePredicate like Predicate.and(Predicate) . |
static <T,E extends Throwable> |
Failable.test(FailablePredicate<T,E> predicate,
T object)
Tests a predicate and rethrows any exception as a
RuntimeException . |
Modifier and Type | Method and 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.
|
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.