public static class IntFunction.Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static <R> IntFunction<R> |
safe(ThrowableIntFunction<? extends R,Throwable> throwableFunction)
Creates a safe
IntFunction, |
static <R> IntFunction<R> |
safe(ThrowableIntFunction<? extends R,Throwable> throwableFunction,
R resultIfFailed)
Creates a safe
IntFunction, |
public static <R> IntFunction<R> safe(ThrowableIntFunction<? extends R,Throwable> throwableFunction)
IntFunction,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.ThrowableIntFunction, java.lang.Object)public static <R> IntFunction<R> safe(ThrowableIntFunction<? extends R,Throwable> throwableFunction, R resultIfFailed)
IntFunction,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 © 2017. All rights reserved.