@FunctionalInterface public interface LongBinaryIOOperator
long
-valued operands and producing a long
-valued result.
This is the IOException
throwing equivalent of LongBinaryOperator
.Modifier and Type | Method and Description |
---|---|
long |
applyAsLong(long left,
long right)
Applies this operator to the given operands.
|
static LongBinaryIOOperator |
checked(LongBinaryOperator operator)
Returns a binary operator that applies the
operator operator to its input, and unwraps any UncheckedIOException that is thrown
by throwing its cause . |
static LongBinaryOperator |
unchecked(LongBinaryIOOperator operator)
Returns a binary operator that applies the
operator operator to its input, and wraps any IOException that is thrown in an
UncheckedIOException . |
long applyAsLong(long left, long right) throws IOException
left
- The first operand.right
- The second operand.IOException
- If an I/O error occurs.static LongBinaryOperator unchecked(LongBinaryIOOperator operator)
operator
operator to its input, and wraps any IOException
that is thrown in an
UncheckedIOException
.operator
- The binary operator to apply when the returned binary operator is applied.operator
operator to its input, and wraps any IOException
that is thrown in an
UncheckedIOException
.NullPointerException
- If operator
is null
.static LongBinaryIOOperator checked(LongBinaryOperator operator)
operator
operator to its input, and unwraps any UncheckedIOException
that is thrown
by throwing its cause
.operator
- The binary operator to apply when the returned binary 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.