Package com.globalmentor.io.function
Interface IOBiPredicate<T,U>
- Type Parameters:
T
- the type of the first argument to the predicateU
- the type of the second argument the predicate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a predicate (boolean-valued function) of two arguments. This is the two-arity specialization of
IOPredicate
.
This interface is similar to BiPredicate
except that it is allowed to throw an IOException
.
- Author:
- Magno N A Cruz
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault IOBiPredicate<T,
U> and
(IOBiPredicate<? super T, ? super U> other) This method is the same asBiPredicate.and(BiPredicate)
, but with a support forIOException
.default IOBiPredicate<T,
U> negate()
This method is the same asBiPredicate.negate()
, but with a support forIOException
.default IOBiPredicate<T,
U> or
(IOBiPredicate<? super T, ? super U> other) This method is the same asBiPredicate.or(BiPredicate)
, but with a support forIOException
.boolean
This method is the same asBiPredicate.test(Object, Object)
, but with a support forIOException
.
-
Method Details
-
test
This method is the same as
BiPredicate.test(Object, Object)
, but with a support forIOException
.- Parameters:
t
- The first input argument.u
- The second input argument.- Returns:
true
if the input arguments match the predicate,false
if not.- Throws:
IOException
- if there is an I/O error performing the operation.
-
and
default IOBiPredicate<T,U> and(@Nonnull IOBiPredicate<? super T, ? super U> other) throws IOExceptionThis method is the same as
BiPredicate.and(BiPredicate)
, but with a support forIOException
.- Parameters:
other
- A predicate that will be logically-ANDed with this predicate.- Returns:
- A composed predicate that represents the short-circuiting logical AND of this predicate and the
other
predicate. - Throws:
IOException
- if there is an I/O error performing the operation.
-
negate
This method is the same as
BiPredicate.negate()
, but with a support forIOException
.- Returns:
- A predicate that represents the logical negation of this predicate
- Throws:
IOException
- if there is an I/O error performing the operation
-
or
This method is the same as
BiPredicate.or(BiPredicate)
, but with a support forIOException
.- Parameters:
other
- A predicate that will be logically-ORed with this predicate.- Returns:
- A composed predicate that represents the short-circuiting logical OR of this predicate and the
other
predicate. - Throws:
IOException
- if there is an I/O error performing the operation.
-