Package com.globalmentor.io.function
Interface IODoublePredicate
- 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 one
double
-valued argument. This is the double
-consuming primitive type specialization of
IOPredicate
.
This interface is similar to DoublePredicate
except that it is allowed to throw an IOException
.
- Author:
- Magno N A Cruz
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault IODoublePredicate
and
(IODoublePredicate other) This method is the same asDoublePredicate.and(DoublePredicate)
, but with a support forIOException
.default IODoublePredicate
negate()
This method is the same asDoublePredicate.negate()
, but with a support forIOException
.default IODoublePredicate
or
(IODoublePredicate other) This method is the same asDoublePredicate.or(DoublePredicate)
, but with a support forIOException
.boolean
test
(double value) This method is the same asDoublePredicate.test(double)
, but with a support forIOException
.
-
Method Details
-
test
This method is the same as
DoublePredicate.test(double)
, but with a support forIOException
.- Parameters:
value
- The input argument.- Returns:
true
if the input argument matches the predicate,false
if not.- Throws:
IOException
- if there is an I/O error performing the operation.
-
and
This method is the same as
DoublePredicate.and(DoublePredicate)
, 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
DoublePredicate.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
DoublePredicate.or(DoublePredicate)
, 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.
-