java.util.function.DoubleBinaryOperator@FunctionalInterface
public interface ThrowingDoubleBinaryOperator
extends java.util.function.DoubleBinaryOperator
double-valued operands, producing a double-valued result, and possibly throwing an exception.| Modifier and Type | Method | Description |
|---|---|---|
default double |
applyAsDouble(double former,
double latter) |
Applies this operator to the given arguments.
|
double |
applyAsDoubleThrowing(double former,
double latter) |
Applies this operator to the given arguments.
|
default java.util.function.DoubleBinaryOperator |
fallbackTo(java.util.function.DoubleBinaryOperator fallback) |
Returns a
DoubleBinaryOperator applying the given operator to the arguments if this operator throws an exception. |
default java.util.function.DoubleBinaryOperator |
fallbackTo(java.util.function.DoubleBinaryOperator fallback,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer) |
Returns a
DoubleBinaryOperator applying the given operator to the arguments if this operator throws an exception. |
default java.util.function.DoubleBinaryOperator |
orReturn(double value) |
Returns a
DoubleBinaryOperator returning the given value if this operator throws an exception. |
default java.util.function.DoubleBinaryOperator |
orReturn(double value,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer) |
Returns a
DoubleBinaryOperator returning the given value if this operator throws an exception. |
default ThrowingDoubleBinaryOperator |
orThrow(java.lang.Class<? extends java.lang.RuntimeException> exceptionClass) |
Returns a
ThrowingDoubleBinaryOperator throwing an exception of the given type if this operator throws an exception. |
default ThrowingDoubleBinaryOperator |
orThrow(java.lang.Class<? extends java.lang.RuntimeException> exceptionClass,
java.lang.String message) |
Returns a
ThrowingDoubleBinaryOperator throwing an exception of the given type if this operator throws an exception. |
default ThrowingDoubleBinaryOperator |
orTryWith(ThrowingDoubleBinaryOperator other) |
Returns a
ThrowingDoubleBinaryOperator applying the given operator to the arguments if this operator throws an exception. |
default ThrowingDoubleBinaryOperator |
orTryWith(ThrowingDoubleBinaryOperator other,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer) |
Returns a
ThrowingDoubleBinaryOperator applying the given operator to the arguments if this operator throws an exception. |
default double applyAsDouble(double former,
double latter)
UncheckedException.applyAsDouble in interface java.util.function.DoubleBinaryOperatordouble applyAsDoubleThrowing(double former,
double latter)
throws java.lang.Exception
java.lang.Exceptiondefault java.util.function.DoubleBinaryOperator fallbackTo(java.util.function.DoubleBinaryOperator fallback)
DoubleBinaryOperator applying the given operator to the arguments if this operator throws an exception.java.lang.IllegalArgumentException - if fallback is nulldefault java.util.function.DoubleBinaryOperator fallbackTo(java.util.function.DoubleBinaryOperator fallback,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer)
DoubleBinaryOperator applying the given operator to the arguments if this operator throws an exception.java.lang.IllegalArgumentException - if fallback is nulldefault java.util.function.DoubleBinaryOperator orReturn(double value)
DoubleBinaryOperator returning the given value if this operator throws an exception.default java.util.function.DoubleBinaryOperator orReturn(double value,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer)
DoubleBinaryOperator returning the given value if this operator throws an exception.default ThrowingDoubleBinaryOperator orThrow(java.lang.Class<? extends java.lang.RuntimeException> exceptionClass)
ThrowingDoubleBinaryOperator throwing an exception of the given type if this operator throws an exception.
The original exception thrown by this operator is the cause of the thrown exception.
The exception class must have a constructor accepting a single Throwable as an argument.
java.lang.IllegalArgumentException - if exceptionClass is nulldefault ThrowingDoubleBinaryOperator orThrow(java.lang.Class<? extends java.lang.RuntimeException> exceptionClass, java.lang.String message)
ThrowingDoubleBinaryOperator throwing an exception of the given type if this operator throws an exception.
The original exception thrown by this operator is the cause of the thrown exception.
The exception class must have a constructor accepting String and Throwable as arguments.
java.lang.IllegalArgumentException - if exceptionClass is nulldefault ThrowingDoubleBinaryOperator orTryWith(ThrowingDoubleBinaryOperator other)
ThrowingDoubleBinaryOperator applying the given operator to the arguments if this operator throws an exception.java.lang.IllegalArgumentException - if other is nulldefault ThrowingDoubleBinaryOperator orTryWith(ThrowingDoubleBinaryOperator other, java.util.function.Consumer<java.lang.Exception> exceptionConsumer)
ThrowingDoubleBinaryOperator applying the given operator to the arguments if this operator throws an exception.java.lang.IllegalArgumentException - if other is null