Package com.globalmentor.io.function
Interface IODoubleUnaryOperator
-
- 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 IODoubleUnaryOperator
Represents an operation on a singledouble
-valued operand that produces adouble
-valued result. This is the primitive type specialization ofIOUnaryOperator
fordouble
.This interface is similar to
DoubleUnaryOperator
except that it is allowed to throw anIOException
.- Author:
- Magno N A Cruz
- See Also:
IOUnaryOperator
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IODoubleUnaryOperator
andThen(IODoubleUnaryOperator after)
This method is the same asDoubleUnaryOperator.andThen(DoubleUnaryOperator)
, but with a support forIOException
.double
applyAsDouble(double operand)
This method is the same asDoubleUnaryOperator.applyAsDouble(double)
, but with a support forIOException
.default IODoubleUnaryOperator
compose(IODoubleUnaryOperator before)
This method is the same asDoubleUnaryOperator.compose(DoubleUnaryOperator)
, but with a support forIOException
.static IODoubleUnaryOperator
identity()
This method is the same asDoubleUnaryOperator.identity()
, but with a support forIOException
.
-
-
-
Method Detail
-
applyAsDouble
double applyAsDouble(double operand) throws java.io.IOException
This method is the same as
DoubleUnaryOperator.applyAsDouble(double)
, but with a support forIOException
.- Parameters:
operand
- The operand.- Returns:
- The operator result.
- Throws:
java.io.IOException
- if there is an I/O error performing the operation.
-
compose
default IODoubleUnaryOperator compose(@Nonnull IODoubleUnaryOperator before) throws java.io.IOException
This method is the same as
DoubleUnaryOperator.compose(DoubleUnaryOperator)
, but with a support forIOException
.- Parameters:
before
- The operator to apply before this operator is applied.- Returns:
- A composed operator that applies the
before
operator first and then this operator. - Throws:
java.io.IOException
- if there is an I/O error performing the operation.- See Also:
andThen(IODoubleUnaryOperator)
-
andThen
default IODoubleUnaryOperator andThen(@Nonnull IODoubleUnaryOperator after) throws java.io.IOException
This method is the same as
DoubleUnaryOperator.andThen(DoubleUnaryOperator)
, but with a support forIOException
.- Parameters:
after
- The operator to apply after this operator is applied.- Returns:
- A composed operator that applies this operator first and then the
after
operator. - Throws:
java.io.IOException
- if there is an I/O error performing the operation.- See Also:
compose(IODoubleUnaryOperator)
-
identity
static IODoubleUnaryOperator identity() throws java.io.IOException
This method is the same as
DoubleUnaryOperator.identity()
, but with a support forIOException
.- Returns:
- A unary operator that always returns its input argument.
- Throws:
java.io.IOException
- if there is an I/O error performing the operation.
-
-