Package com.globalmentor.io.function
Interface IOLongUnaryOperator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents an operation on a single
long
-valued operand that produces a long
-valued result. This is the primitive type specialization of
IOUnaryOperator
for long
.
This interface is similar to LongUnaryOperator
except that it is allowed to throw an IOException
.
- Author:
- Magno N A Cruz
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault IOLongUnaryOperator
andThen
(IOLongUnaryOperator after) This method is the same asLongUnaryOperator.andThen(LongUnaryOperator)
, but with a support forIOException
.long
applyAsLong
(long operand) This method is the same asLongUnaryOperator.applyAsLong(long)
, but with a support forIOException
.default IOLongUnaryOperator
compose
(IOLongUnaryOperator before) This method is the same asLongUnaryOperator.compose(LongUnaryOperator)
, but with a support forIOException
.static IOLongUnaryOperator
identity()
This method is the same asLongUnaryOperator.identity()
, but with a support forIOException
.
-
Method Details
-
applyAsLong
This method is the same as
LongUnaryOperator.applyAsLong(long)
, but with a support forIOException
.- Parameters:
operand
- The operand.- Returns:
- The operator result.
- Throws:
IOException
- if there is an I/O error performing the operation.
-
compose
This method is the same as
LongUnaryOperator.compose(LongUnaryOperator)
, 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:
IOException
- if there is an I/O error performing the operation.- See Also:
-
andThen
This method is the same as
LongUnaryOperator.andThen(LongUnaryOperator)
, 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:
IOException
- if there is an I/O error performing the operation.- See Also:
-
identity
This method is the same as
LongUnaryOperator.identity()
, but with a support forIOException
.- Returns:
- A unary operator that always returns its input argument.
- Throws:
IOException
- if there is an I/O error performing the operation.
-