E - The extension@FunctionalInterface public interface DoubleUnaryOperatorWithThrowable<E extends Throwable> extends DoubleUnaryOperator
| Modifier and Type | Method and Description |
|---|---|
static <E extends Throwable> |
aDoubleUnaryOperatorThatUnsafelyThrowsUnchecked(DoubleUnaryOperatorWithThrowable<E> doubleunaryoperatorwiththrowable)
Utility method to unwrap lambdas of type DoubleUnaryOperator and withUncheckedThrowable any Exception
|
default double |
applyAsDouble(double v1)
Overridden method of DoubleUnaryOperatorWithThrowable that will call applyAsDoubleWithThrowable, but catching any exceptions.
|
double |
applyAsDoubleWithThrowable(double v1)
Functional method that will throw exceptions.
|
static <E extends Throwable> |
asDoubleUnaryOperatorWithThrowable(DoubleUnaryOperator doubleunaryoperator)
Utility method to convert DoubleUnaryOperatorWithThrowable
|
static <E extends Throwable> |
castDoubleUnaryOperatorWithThrowable(DoubleUnaryOperatorWithThrowable<E> doubleunaryoperatorwiththrowable)
Utility method to mark lambdas of type DoubleUnaryOperatorWithThrowable
|
default DoubleUnaryOperatorWithThrowable<E> |
onException(BiConsumer<Throwable,Object[]> consumer) |
default DoubleUnaryOperatorWithThrowable<E> |
onException(Consumer<Throwable> consumer) |
default DoubleUnaryOperator |
thatReturnsOnCatch(double defaultReturnValue) |
default DoubleUnaryOperator |
thatUnsafelyThrowsUnchecked() |
default DoubleUnaryOperatorWithThrowable<E> |
withLogging()
Will log WARNING level exceptions on logger if they occur within the interface
|
default DoubleUnaryOperatorWithThrowable<E> |
withLogging(org.slf4j.Logger logger)
Will log WARNING level exceptions on logger if they occur within the interface
|
default DoubleUnaryOperatorWithThrowable<E> |
withLogging(org.slf4j.Logger logger,
String message) |
andThen, compose, identitystatic <E extends Throwable> DoubleUnaryOperatorWithThrowable<E> castDoubleUnaryOperatorWithThrowable(DoubleUnaryOperatorWithThrowable<E> doubleunaryoperatorwiththrowable)
E - The type this interface is allowed to throwdoubleunaryoperatorwiththrowable - The interface instancestatic <E extends Throwable> DoubleUnaryOperator aDoubleUnaryOperatorThatUnsafelyThrowsUnchecked(DoubleUnaryOperatorWithThrowable<E> doubleunaryoperatorwiththrowable) throws E extends Throwable
E - The type this interface is allowed to throwdoubleunaryoperatorwiththrowable - The interface instanceE - the original Exception from doubleunaryoperatorwiththrowableE extends Throwablestatic <E extends Throwable> DoubleUnaryOperatorWithThrowable<E> asDoubleUnaryOperatorWithThrowable(DoubleUnaryOperator doubleunaryoperator)
E - The type this interface is allowed to throwdoubleunaryoperator - The interface instancedefault double applyAsDouble(double v1)
applyAsDouble in interface DoubleUnaryOperatorv1 - parameter to overridden methoddouble applyAsDoubleWithThrowable(double v1)
throws E extends Throwable
default DoubleUnaryOperator thatReturnsOnCatch(double defaultReturnValue)
defaultReturnValue - A value to return if any throwable is caught.default DoubleUnaryOperator thatUnsafelyThrowsUnchecked() throws E extends Throwable
default DoubleUnaryOperatorWithThrowable<E> withLogging(org.slf4j.Logger logger, String message)
logger - The logger to log exceptions onmessage - A message to use for logging exceptionsdefault DoubleUnaryOperatorWithThrowable<E> withLogging(org.slf4j.Logger logger)
logger - The logger instance to log exceptions ondefault DoubleUnaryOperatorWithThrowable<E> withLogging()
default DoubleUnaryOperatorWithThrowable<E> onException(Consumer<Throwable> consumer)
consumer - An exception consumer.default DoubleUnaryOperatorWithThrowable<E> onException(BiConsumer<Throwable,Object[]> consumer)
consumer - An exception consumer.Copyright © 2017. All rights reserved.