public static class DoubleFunction.Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static <R> DoubleFunction<R> |
safe(ThrowableDoubleFunction<? extends R,Throwable> throwableFunction)
Creates a safe
DoubleFunction, |
static <R> DoubleFunction<R> |
safe(ThrowableDoubleFunction<? extends R,Throwable> throwableFunction,
R resultIfFailed)
Creates a safe
DoubleFunction, |
public static <R> DoubleFunction<R> safe(ThrowableDoubleFunction<? extends R,Throwable> throwableFunction)
DoubleFunction,R - the type of the result of the functionthrowableFunction - the function that may throw an exceptionnull if exception was thrownNullPointerException - if throwableFunction is nullsafe(com.annimon.stream.function.ThrowableDoubleFunction, java.lang.Object)public static <R> DoubleFunction<R> safe(ThrowableDoubleFunction<? extends R,Throwable> throwableFunction, R resultIfFailed)
DoubleFunction,R - the type of the result of the functionthrowableFunction - the function that may throw an exceptionresultIfFailed - the result which returned if exception was thrownresultIfFailedNullPointerException - if throwableFunction is nullCopyright © 2018. All rights reserved.