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.
@FunctionalInterface public interface IOLongUnaryOperator
Represents an operation on a singlelong
-valued operand that produces along
-valued result. This is the primitive type specialization ofIOUnaryOperator
forlong
.This interface is similar to
LongUnaryOperator
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 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 Detail
-
applyAsLong
long applyAsLong(long operand) throws java.io.IOException
This method is the same as
LongUnaryOperator.applyAsLong(long)
, 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 IOLongUnaryOperator compose(@Nonnull IOLongUnaryOperator before) throws java.io.IOException
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:
java.io.IOException
- if there is an I/O error performing the operation.- See Also:
andThen(IOLongUnaryOperator)
-
andThen
default IOLongUnaryOperator andThen(@Nonnull IOLongUnaryOperator after) throws java.io.IOException
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:
java.io.IOException
- if there is an I/O error performing the operation.- See Also:
compose(IOLongUnaryOperator)
-
identity
static IOLongUnaryOperator identity() throws java.io.IOException
This method is the same as
LongUnaryOperator.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.
-
-