T - The type of the first argument to the predicate.U - The type of the second argument the predicate.@FunctionalInterface public interface IOBiPredicate<T,U>
IOException throwing equivalent of BiPredicate.| Modifier and Type | Method and Description |
|---|---|
default IOBiPredicate<T,U> |
and(IOBiPredicate<? super T,? super U> other)
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
|
static <T,U> IOBiPredicate<T,U> |
checked(BiPredicate<? super T,? super U> predicate)
Returns a predicate that evaluates the
predicate predicate, and unwraps any UncheckedIOException that is thrown by
throwing its cause. |
default IOBiPredicate<T,U> |
negate()
Returns a predicate that represents the logical negation of this predicate.
|
default IOBiPredicate<T,U> |
or(IOBiPredicate<? super T,? super U> other)
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
|
boolean |
test(T t,
U u)
Evaluates this predicate on the given arguments.
|
static <T,U> BiPredicate<T,U> |
unchecked(IOBiPredicate<? super T,? super U> predicate)
Returns a predicate that evaluates the
predicate predicate, and wraps any IOException that is thrown in an
UncheckedIOException. |
boolean test(T t, U u) throws IOException
t - The first input argument.u - The second input argument.true if the input arguments match the predicate, otherwise falseIOException - If an I/O error occurs.default IOBiPredicate<T,U> and(IOBiPredicate<? super T,? super U> other)
false, then the other predicate is not evaluated.
Any exceptions thrown during evaluation of either predicate are relayed to the caller;
if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
other - A predicate that will be logically-ANDed with this predicate.other predicate.NullPointerException - If other is null.default IOBiPredicate<T,U> negate()
default IOBiPredicate<T,U> or(IOBiPredicate<? super T,? super U> other)
true, then the other predicate is not evaluated.
Any exceptions thrown during evaluation of either predicate are relayed to the caller;
if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
other - A predicate that will be logically-ORed with this predicateother predicate.NullPointerException - If other is null.static <T,U> BiPredicate<T,U> unchecked(IOBiPredicate<? super T,? super U> predicate)
predicate predicate, and wraps any IOException that is thrown in an
UncheckedIOException.T - The type of the first argument to the predicate.U - The type of the second argument the predicate.predicate - The predicate to evaluate when the returned predicate is evaluated.predicate predicate on its input, and wraps any IOException that is thrown in an
UncheckedIOException.NullPointerException - If predicate is null.static <T,U> IOBiPredicate<T,U> checked(BiPredicate<? super T,? super U> predicate)
predicate predicate, and unwraps any UncheckedIOException that is thrown by
throwing its cause.T - The type of the first argument to the predicate.U - The type of the second argument the predicate.predicate - The predicate to evaluate when the returned predicate is evaluated.predicate operation on its input, and unwraps any UncheckedIOException that is thrown.NullPointerException - If the given operation is null.Copyright © 2017–2020. All rights reserved.