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