Package | Description |
---|---|
org.apache.commons.io.function |
Provides IO-only related functional interfaces for lambda expressions and method references.
|
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(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)
|
default boolean |
IOStream.noneMatch(IOPredicate<? super T> 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.
|
static <T> boolean |
Uncheck.test(IOPredicate<T> predicate,
T t)
Tests an IO predicate.
|
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.