T - the type of the first argument to the functionU - the type of the second argument the functionE - the type of the potential exception of the functionExceptionHandlerSupport<T,U>, PrimitiveReturnExceptionHandlerSupport<ToDoubleBiFunction<T,U>>@FunctionalInterface public interface ToDoubleBiFunctionWithException<T,U,E extends Exception> extends PrimitiveReturnExceptionHandlerSupport<ToDoubleBiFunction<T,U>>
double-producing
primitive specialization for BiFunctionWithException.
double applyAsDouble(T t, U u)
throws E - The functional method.ToDoubleBiFunction<T, U>ToDoubleBiFunction<T, U>ToDoubleBiFunction<T, U>ToDoubleBiFunction| Modifier and Type | Method | Description |
|---|---|---|
double |
applyAsDouble(T t,
U u) |
Applies this function to the given arguments.
|
static <T,U,E extends Exception> |
failing(Supplier<E> exceptionBuilder) |
Returns a function that always throw exception.
|
static <T,U,E extends Exception> |
ignored(ToDoubleBiFunctionWithException<T,U,E> function) |
Converts a
ToDoubleBiFunctionWithException to a lifted
ToDoubleBiFunction returning 0 in case of exception. |
static <T,U,E extends Exception> |
lifted(ToDoubleBiFunctionWithException<T,U,E> function) |
Converts a
ToDoubleBiFunctionWithException to a lifted
ToDoubleBiFunction returning 0 in case of exception. |
static <T,U,E extends Exception> |
unchecked(ToDoubleBiFunctionWithException<T,U,E> function) |
Converts a
ToDoubleBiFunctionWithException to a
ToDoubleBiFunction that wraps exception to RuntimeException. |
static <T,U,E extends Exception> |
unchecked(ToDoubleBiFunctionWithException<T,U,E> function,
Function<Exception,RuntimeException> exceptionMapper) |
Converts a
ToDoubleBiFunctionWithException to a
ToDoubleBiFunction that wraps exception to RuntimeException
by using the provided mapping function. |
default ToDoubleBiFunction<T,U> |
uncheckOrIgnore(boolean uncheck) |
Used internally to implements the ignore or uncheck operation.
|
exceptionMapper, exceptionMapperForhandleException, ignore, lift, uncheckdouble applyAsDouble(T t, U u) throws E extends Exception
t - the first input argumentu - the first second argumentE - any exceptionE extends ExceptionToDoubleBiFunction.applyAsDouble(Object, Object)default ToDoubleBiFunction<T,U> uncheckOrIgnore(boolean uncheck)
PrimitiveReturnExceptionHandlerSupportuncheckOrIgnore in interface PrimitiveReturnExceptionHandlerSupport<T>uncheck - create unchecked version of the function when true, else ignored
version.static <T,U,E extends Exception> ToDoubleBiFunctionWithException<T,U,E> failing(Supplier<E> exceptionBuilder)
T - the type of the first argument to the functionU - the type of the second argument the functionE - the type of the exceptionexceptionBuilder - the supplier to create the exceptionstatic <T,U,E extends Exception> ToDoubleBiFunction<T,U> unchecked(ToDoubleBiFunctionWithException<T,U,E> function)
ToDoubleBiFunctionWithException to a
ToDoubleBiFunction that wraps exception to RuntimeException.T - the type of the first argument to the functionU - the type of the second argument the functionE - the type of the potential exceptionfunction - to be uncheckedNullPointerException - if function is nullPrimitiveReturnExceptionHandlerSupport.uncheck(),
unchecked(ToDoubleBiFunctionWithException, Function)static <T,U,E extends Exception> ToDoubleBiFunction<T,U> unchecked(ToDoubleBiFunctionWithException<T,U,E> function, Function<Exception,RuntimeException> exceptionMapper)
ToDoubleBiFunctionWithException to a
ToDoubleBiFunction that wraps exception to RuntimeException
by using the provided mapping function.T - the type of the first argument to the functionU - the type of the second argument the functionE - the type of the potential exceptionfunction - the be uncheckedexceptionMapper - a function to convert the exception to the runtime exception.NullPointerException - if function or exception is nullPrimitiveReturnExceptionHandlerSupport.uncheck(),
unchecked(ToDoubleBiFunctionWithException)static <T,U,E extends Exception> ToDoubleBiFunction<T,U> lifted(ToDoubleBiFunctionWithException<T,U,E> function)
ToDoubleBiFunctionWithException to a lifted
ToDoubleBiFunction returning 0 in case of exception.T - the type of the first argument to the functionU - the type of the second argument the functionE - the type of the potential exceptionfunction - to be liftedNullPointerException - if function is nullPrimitiveReturnExceptionHandlerSupport.lift()static <T,U,E extends Exception> ToDoubleBiFunction<T,U> ignored(ToDoubleBiFunctionWithException<T,U,E> function)
ToDoubleBiFunctionWithException to a lifted
ToDoubleBiFunction returning 0 in case of exception.T - the type of the first argument to the functionU - the type of the second argument the functionE - the type of the potential exceptionfunction - to be liftedNullPointerException - if function is nullPrimitiveReturnExceptionHandlerSupport.ignore()Copyright © 2019. All rights reserved.