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