java.util.function.DoubleUnaryOperator@FunctionalInterface
public interface ThrowingDoubleUnaryOperator
extends java.util.function.DoubleUnaryOperator
double-valued operand that produces a double-valued result, possibly throwing an exception.| Modifier and Type | Method | Description |
|---|---|---|
default ThrowingDoubleUnaryOperator |
andThen(ThrowingDoubleUnaryOperator after) |
Returns a composed
ThrowingDoubleUnaryOperator that first applies this operator to the argument, and then applies the after operator to the result. |
default double |
applyAsDouble(double argument) |
Applies this operator to the given argument.
|
double |
applyAsDoubleThrowing(double argument) |
Applies this operator to the given argument.
|
default ThrowingDoubleUnaryOperator |
compose(ThrowingDoubleUnaryOperator before) |
Returns a composed
ThrowingDoubleUnaryOperator that first applies the before operator to the argument, and then applies this operator to the result. |
default java.util.function.DoubleUnaryOperator |
fallbackTo(java.util.function.DoubleUnaryOperator fallback) |
Returns a
DoubleUnaryOperator applying the given operator to the argument if this operator throws an exception. |
default java.util.function.DoubleUnaryOperator |
fallbackTo(java.util.function.DoubleUnaryOperator fallback,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer) |
Returns a
DoubleUnaryOperator applying the given operator to the argument if this operator throws an exception. |
default java.util.function.DoubleUnaryOperator |
orReturn(double value) |
Returns a
DoubleUnaryOperator returning the given value if this operator throws an exception. |
default java.util.function.DoubleUnaryOperator |
orReturn(double value,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer) |
Returns a
DoubleUnaryOperator returning the given value if this operator throws an exception. |
default ThrowingDoubleUnaryOperator |
orThrow(java.lang.Class<? extends java.lang.RuntimeException> exceptionClass) |
Returns a
ThrowingDoubleUnaryOperator throwing an exception of the given type if this operator throws an exception. |
default ThrowingDoubleUnaryOperator |
orThrow(java.lang.Class<? extends java.lang.RuntimeException> exceptionClass,
java.lang.String message) |
Returns a
ThrowingDoubleUnaryOperator throwing an exception of the given type if this operator throws an exception. |
default ThrowingDoubleUnaryOperator |
orTryWith(ThrowingDoubleUnaryOperator other) |
Returns a
ThrowingDoubleUnaryOperator applying the given operator to the argument if this operator throws an exception. |
default ThrowingDoubleUnaryOperator |
orTryWith(ThrowingDoubleUnaryOperator other,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer) |
Returns a
ThrowingDoubleUnaryOperator applying the given operator to the argument if this operator throws an exception. |
default ThrowingDoubleUnaryOperator andThen(ThrowingDoubleUnaryOperator after)
ThrowingDoubleUnaryOperator that first applies this operator to the argument, and then applies the after operator to the result.java.lang.IllegalArgumentException - if after is nulldefault double applyAsDouble(double argument)
UncheckedException.applyAsDouble in interface java.util.function.DoubleUnaryOperatordouble applyAsDoubleThrowing(double argument)
throws java.lang.Exception
java.lang.Exceptiondefault ThrowingDoubleUnaryOperator compose(ThrowingDoubleUnaryOperator before)
ThrowingDoubleUnaryOperator that first applies the before operator to the argument, and then applies this operator to the result.java.lang.IllegalArgumentException - if before is nulldefault java.util.function.DoubleUnaryOperator fallbackTo(java.util.function.DoubleUnaryOperator fallback)
DoubleUnaryOperator applying the given operator to the argument if this operator throws an exception.java.lang.IllegalArgumentException - if fallback is nulldefault java.util.function.DoubleUnaryOperator fallbackTo(java.util.function.DoubleUnaryOperator fallback,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer)
DoubleUnaryOperator applying the given operator to the argument if this operator throws an exception.java.lang.IllegalArgumentException - if fallback is nulldefault java.util.function.DoubleUnaryOperator orReturn(double value)
DoubleUnaryOperator returning the given value if this operator throws an exception.default java.util.function.DoubleUnaryOperator orReturn(double value,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer)
DoubleUnaryOperator returning the given value if this operator throws an exception.default ThrowingDoubleUnaryOperator orThrow(java.lang.Class<? extends java.lang.RuntimeException> exceptionClass)
ThrowingDoubleUnaryOperator 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 ThrowingDoubleUnaryOperator orThrow(java.lang.Class<? extends java.lang.RuntimeException> exceptionClass, java.lang.String message)
ThrowingDoubleUnaryOperator 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 ThrowingDoubleUnaryOperator orTryWith(ThrowingDoubleUnaryOperator other)
ThrowingDoubleUnaryOperator applying the given operator to the argument if this operator throws an exception.java.lang.IllegalArgumentException - if other is nulldefault ThrowingDoubleUnaryOperator orTryWith(ThrowingDoubleUnaryOperator other, java.util.function.Consumer<java.lang.Exception> exceptionConsumer)
ThrowingDoubleUnaryOperator applying the given operator to the argument if this operator throws an exception.java.lang.IllegalArgumentException - if other is null