T - some generic flagU - some generic flagE - The extension@FunctionalInterface public interface ToDoubleBiFunctionWithThrowable<T,U,E extends Throwable> extends ToDoubleBiFunction<T,U>
| Modifier and Type | Method and Description |
|---|---|
default double |
applyAsDouble(T v1,
U v2)
Overridden method of ToDoubleBiFunctionWithThrowable that will call applyAsDoubleWithThrowable, but catching any exceptions.
|
double |
applyAsDoubleWithThrowable(T v1,
U v2)
Functional method that will throw exceptions.
|
static <T,U,E extends Throwable> |
asToDoubleBiFunctionWithThrowable(ToDoubleBiFunction<T,U> todoublebifunction)
Utility method to convert ToDoubleBiFunctionWithThrowable
|
static <T,U,E extends Throwable> |
aToDoubleBiFunctionThatUnsafelyThrowsUnchecked(ToDoubleBiFunctionWithThrowable<T,U,E> todoublebifunctionwiththrowable)
Utility method to unwrap lambdas of type ToDoubleBiFunction and withUncheckedThrowable any Exception
|
static <T,U,E extends Throwable> |
castToDoubleBiFunctionWithThrowable(ToDoubleBiFunctionWithThrowable<T,U,E> todoublebifunctionwiththrowable)
Utility method to mark lambdas of type ToDoubleBiFunctionWithThrowable
|
default ToDoubleBiFunctionWithThrowable<T,U,E> |
onException(BiConsumer<Throwable,Object[]> consumer) |
default ToDoubleBiFunctionWithThrowable<T,U,E> |
onException(Consumer<Throwable> consumer) |
default ToDoubleBiFunction<T,U> |
thatReturnsOnCatch(double defaultReturnValue) |
default BiFunction<T,U,OptionalDouble> |
thatReturnsOptional() |
default ToDoubleBiFunction<T,U> |
thatUnsafelyThrowsUnchecked() |
default ToDoubleBiFunctionWithThrowable<T,U,E> |
withLogging()
Will log WARNING level exceptions on logger if they occur within the interface
|
default ToDoubleBiFunctionWithThrowable<T,U,E> |
withLogging(org.slf4j.Logger logger)
Will log WARNING level exceptions on logger if they occur within the interface
|
default ToDoubleBiFunctionWithThrowable<T,U,E> |
withLogging(org.slf4j.Logger logger,
String message) |
static <T,U,E extends Throwable> ToDoubleBiFunctionWithThrowable<T,U,E> castToDoubleBiFunctionWithThrowable(ToDoubleBiFunctionWithThrowable<T,U,E> todoublebifunctionwiththrowable)
T - Generic that corresponds to the same generic on ToDoubleBiFunctionU - Generic that corresponds to the same generic on ToDoubleBiFunctionE - The type this interface is allowed to throwtodoublebifunctionwiththrowable - The interface instancestatic <T,U,E extends Throwable> ToDoubleBiFunction<T,U> aToDoubleBiFunctionThatUnsafelyThrowsUnchecked(ToDoubleBiFunctionWithThrowable<T,U,E> todoublebifunctionwiththrowable) throws E extends Throwable
T - Generic that corresponds to the same generic on ToDoubleBiFunctionU - Generic that corresponds to the same generic on ToDoubleBiFunctionE - The type this interface is allowed to throwtodoublebifunctionwiththrowable - The interface instanceE - the original Exception from todoublebifunctionwiththrowableE extends Throwablestatic <T,U,E extends Throwable> ToDoubleBiFunctionWithThrowable<T,U,E> asToDoubleBiFunctionWithThrowable(ToDoubleBiFunction<T,U> todoublebifunction)
T - Generic that corresponds to the same generic on ToDoubleBiFunctionU - Generic that corresponds to the same generic on ToDoubleBiFunctionE - The type this interface is allowed to throwtodoublebifunction - The interface instancedefault double applyAsDouble(T v1, U v2)
applyAsDouble in interface ToDoubleBiFunction<T,U>v1 - parameter to overridden methodv2 - parameter to overridden methoddouble applyAsDoubleWithThrowable(T v1, U v2) throws E extends Throwable
default BiFunction<T,U,OptionalDouble> thatReturnsOptional()
default ToDoubleBiFunction<T,U> thatReturnsOnCatch(double defaultReturnValue)
defaultReturnValue - A value to return if any throwable is caught.default ToDoubleBiFunction<T,U> thatUnsafelyThrowsUnchecked() throws E extends Throwable
default ToDoubleBiFunctionWithThrowable<T,U,E> withLogging(org.slf4j.Logger logger, String message)
logger - The logger to log exceptions onmessage - A message to use for logging exceptionsdefault ToDoubleBiFunctionWithThrowable<T,U,E> withLogging(org.slf4j.Logger logger)
logger - The logger instance to log exceptions ondefault ToDoubleBiFunctionWithThrowable<T,U,E> withLogging()
default ToDoubleBiFunctionWithThrowable<T,U,E> onException(Consumer<Throwable> consumer)
consumer - An exception consumer.default ToDoubleBiFunctionWithThrowable<T,U,E> onException(BiConsumer<Throwable,Object[]> consumer)
consumer - An exception consumer.Copyright © 2017. All rights reserved.