Package com.globalmentor.io.function
Interface IOLongPredicate
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IOLongPredicate
Represents a predicate (boolean-valued function) of onelong
-valued argument. This is thelong
-consuming primitive type specialization ofIOPredicate
.This interface is similar to
LongPredicate
except that it is allowed to throw anIOException
.- Author:
- Magno N A Cruz
- See Also:
IOPredicate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IOLongPredicate
and(IOLongPredicate other)
This method is the same asLongPredicate.and(LongPredicate)
, but with a support forIOException
.default IOLongPredicate
negate()
This method is the same asLongPredicate.negate()
, but with a support forIOException
.default IOLongPredicate
or(IOLongPredicate other)
This method is the same asLongPredicate.or(LongPredicate)
, but with a support forIOException
.boolean
test(long value)
This method is the same asLongPredicate.test(long)
, but with a support forIOException
.
-
-
-
Method Detail
-
test
boolean test(long value) throws java.io.IOException
This method is the same as
LongPredicate.test(long)
, but with a support forIOException
.- Parameters:
value
- The input argument.- Returns:
true
if the input argument matches the predicate,false
if not.- Throws:
java.io.IOException
- if there is an I/O error performing the operation.
-
and
default IOLongPredicate and(@Nonnull IOLongPredicate other) throws java.io.IOException
This method is the same as
LongPredicate.and(LongPredicate)
, 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:
java.io.IOException
- if there is an I/O error performing the operation.
-
negate
default IOLongPredicate negate() throws java.io.IOException
This method is the same as
LongPredicate.negate()
, but with a support forIOException
.- Returns:
- A predicate that represents the logical negation of this predicate.
- Throws:
java.io.IOException
- if there is an I/O error performing the operation.
-
or
default IOLongPredicate or(@Nonnull IOLongPredicate other) throws java.io.IOException
This method is the same as
LongPredicate.or(LongPredicate)
, 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:
java.io.IOException
- if there is an I/O error performing the operation.
-
-