Package | Description |
---|---|
org.apache.commons.io.function |
Provides IO-only related functional interfaces for lambda expressions and method references.
|
Modifier and Type | Field and Description |
---|---|
(package private) static IOPredicate<java.lang.Object> |
Constants.IO_PREDICATE_FALSE
Always false.
|
(package private) static IOPredicate<java.lang.Object> |
Constants.IO_PREDICATE_TRUE
Always true.
|
Modifier and Type | Method and Description |
---|---|
static <T> IOPredicate<T> |
IOPredicate.alwaysFalse()
Always false.
|
static <T> IOPredicate<T> |
IOPredicate.alwaysTrue()
Always true.
|
default IOPredicate<T> |
IOPredicate.and(IOPredicate<? super T> other)
Creates a composed predicate that represents a short-circuiting logical AND of this predicate and another.
|
static <T> IOPredicate<T> |
IOPredicate.isEqual(java.lang.Object target)
Creates a predicate that tests if two arguments are equal using
Objects.equals(Object, Object) . |
default IOPredicate<T> |
IOPredicate.negate()
Creates a predicate that represents the logical negation of this predicate.
|
default IOPredicate<T> |
IOPredicate.or(IOPredicate<? super T> other)
Creates a composed predicate that represents a short-circuiting logical OR of this predicate and another.
|
Modifier and Type | Method and Description |
---|---|
default boolean |
IOStream.allMatch(IOPredicate<? super T> predicate)
Like
Stream.allMatch(java.util.function.Predicate) but throws IOException . |
default IOPredicate<T> |
IOPredicate.and(IOPredicate<? super T> other)
Creates a composed predicate that represents a short-circuiting logical AND of this predicate and another.
|
default boolean |
IOStream.anyMatch(IOPredicate<? super T> predicate)
Like
Stream.anyMatch(java.util.function.Predicate) but throws IOException . |
default IOStream<T> |
IOStream.filter(IOPredicate<? super T> predicate)
Like
Stream.filter(java.util.function.Predicate) . |
default boolean |
IOStream.noneMatch(IOPredicate<? super T> predicate)
Like
Stream.noneMatch(java.util.function.Predicate) . |
default IOPredicate<T> |
IOPredicate.or(IOPredicate<? super T> other)
Creates a composed predicate that represents a short-circuiting logical OR of this predicate and another.
|
(package private) static <T> boolean |
Erase.test(IOPredicate<? super T> predicate,
T t)
Delegates to the given
IOPredicate but erases its IOException for the compiler, while still throwing
the exception at runtime. |
static <T> boolean |
Uncheck.test(IOPredicate<T> predicate,
T t)
Tests an IO predicate.
|