@FunctionalInterface public interface LongUnaryIOOperator
long
-valued operand that produces a long
-valued result.
This is the IOException
throwing equivalent of LongUnaryOperator
.Modifier and Type | Method and Description |
---|---|
default LongUnaryIOOperator |
andThen(LongUnaryIOOperator after)
Returns a composed operator that first applies this operator to its input, and then applies the
after operator to the result. |
long |
applyAsLong(long operand)
Applies this operator to the given operand.
|
static LongUnaryIOOperator |
checked(LongUnaryOperator operator)
Returns a unary operator that applies the
operator operator to its input, and unwraps any UncheckedIOException that is thrown
by throwing its cause . |
default LongUnaryIOOperator |
compose(LongUnaryIOOperator before)
Returns a composed operator that first applies the
before operator to its input, and then applies this operator to the result. |
static LongUnaryIOOperator |
identity()
Returns a unary operator that always returns its input argument.
|
static LongUnaryOperator |
unchecked(LongUnaryIOOperator operator)
Returns a unary operator that applies the
operator operator to its input, and wraps any IOException that is thrown in an
UncheckedIOException . |
long applyAsLong(long operand) throws IOException
operand
- The operand.IOException
- If an I/O error occurs.default LongUnaryIOOperator compose(LongUnaryIOOperator before)
before
operator to its input, and then applies this operator to the result.
If evaluation of either operator throws an exception, it is relayed to the caller of the composed operator.before
- The operator to apply before this operator is appliedbefore
operator and then applies this operator.NullPointerException
- If before
is null
.andThen(LongUnaryIOOperator)
default LongUnaryIOOperator andThen(LongUnaryIOOperator after)
after
operator to the result.
If evaluation of either operator throws an exception, it is relayed to the caller of the composed operator.after
- The operator to apply after this operator is appliedafter
operator.NullPointerException
- If after
is null
.compose(LongUnaryIOOperator)
static LongUnaryIOOperator identity()
static LongUnaryOperator unchecked(LongUnaryIOOperator operator)
operator
operator to its input, and wraps any IOException
that is thrown in an
UncheckedIOException
.operator
- The unary operator to apply when the returned unary operator is applied.operator
operator to its input, and wraps any IOException
that is thrown in an
UncheckedIOException
.NullPointerException
- If operator
is null
.static LongUnaryIOOperator checked(LongUnaryOperator operator)
operator
operator to its input, and unwraps any UncheckedIOException
that is thrown
by throwing its cause
.operator
- The unary operator to apply when the returned unary operator is applied.operator
operator to its input, and unwraps any UncheckedIOException
that is thrown.NullPointerException
- If operator
is null
.Copyright © 2017–2020. All rights reserved.