@FunctionalInterface public interface IntBinaryIOOperator
int
-valued operands and producing an int
-valued result.
This is the IOException
throwing equivalent of IntBinaryIOOperator
.Modifier and Type | Method and Description |
---|---|
int |
applyAsInt(int left,
int right)
Applies this operator to the given operands.
|
static IntBinaryIOOperator |
checked(IntBinaryOperator 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 IntBinaryOperator |
unchecked(IntBinaryIOOperator operator)
Returns a binary operator that applies the
operator operator to its input, and wraps any IOException that is thrown in an
UncheckedIOException . |
int applyAsInt(int left, int right) throws IOException
left
- The first operand.right
- The second operand.IOException
- If an I/O error occurs.static IntBinaryOperator unchecked(IntBinaryIOOperator 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 IntBinaryIOOperator checked(IntBinaryOperator 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.