| Modifier and Type | Method | Description |
|---|---|---|
default DoubleUnaryOperatorWithException<E> |
DoubleUnaryOperatorWithException.andThen(DoubleUnaryOperatorWithException<? extends E> after) |
Returns a composed operator that first applies this operator to its input,
and then applies the
after operator to the result. |
default DoubleUnaryOperatorWithException<E> |
DoubleUnaryOperatorWithException.compose(DoubleUnaryOperatorWithException<? extends E> before) |
Returns a composed operator that first applies the
before operator to
its input, and then applies this operator to the result. |
static <E extends Exception> |
DoubleUnaryOperatorWithException.failing(Supplier<E> exceptionBuilder) |
Returns a function that always throw exception.
|
static <E extends Exception> |
DoubleUnaryOperatorWithException.identity() |
Returns a unary operator that always returns its input argument.
|
| Modifier and Type | Method | Description |
|---|---|---|
default DoubleUnaryOperatorWithException<E> |
DoubleUnaryOperatorWithException.andThen(DoubleUnaryOperatorWithException<? extends E> after) |
Returns a composed operator that first applies this operator to its input,
and then applies the
after operator to the result. |
default DoubleUnaryOperatorWithException<E> |
DoubleUnaryOperatorWithException.compose(DoubleUnaryOperatorWithException<? extends E> before) |
Returns a composed operator that first applies the
before operator to
its input, and then applies this operator to the result. |
static <E extends Exception> |
DoubleUnaryOperatorWithException.ignored(DoubleUnaryOperatorWithException<E> function) |
Converts a
DoubleUnaryOperatorWithException to a lifted
DoubleUnaryOperator returning 0 in case of exception. |
static <E extends Exception> |
DoubleUnaryOperatorWithException.lifted(DoubleUnaryOperatorWithException<E> function) |
Converts a
DoubleUnaryOperatorWithException to a lifted
DoubleUnaryOperator using 0 as return value in case of error. |
static <E extends Exception> |
DoubleUnaryOperatorWithException.unchecked(DoubleUnaryOperatorWithException<E> function) |
Converts a
DoubleUnaryOperatorException to a
DoubleUnaryOperator that wraps exception to RuntimeException. |
static <E extends Exception> |
DoubleUnaryOperatorWithException.unchecked(DoubleUnaryOperatorWithException<E> function,
Function<Exception,RuntimeException> exceptionMapper) |
Converts a
DoubleUnaryOperatorWithException to a
DoubleUnaryOperator that wraps exception to RuntimeException
by using the provided mapping function. |
Copyright © 2019. All rights reserved.