public static class IntSupplier.Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static IntSupplier |
safe(ThrowableIntSupplier<Throwable> throwableSupplier)
Creates a safe
IntSupplier. |
static IntSupplier |
safe(ThrowableIntSupplier<Throwable> throwableSupplier,
int resultIfFailed)
Creates a safe
IntSupplier. |
public static IntSupplier safe(ThrowableIntSupplier<Throwable> throwableSupplier)
IntSupplier.throwableSupplier - the supplier that may throw an exceptionIntSupplierNullPointerException - if throwableSupplier is nullsafe(com.annimon.stream.function.ThrowableIntSupplier, int)public static IntSupplier safe(ThrowableIntSupplier<Throwable> throwableSupplier, int resultIfFailed)
IntSupplier.throwableSupplier - the supplier that may throw an exceptionresultIfFailed - the result which returned if exception was thrownIntSupplierNullPointerException - if throwableSupplier is nullCopyright © 2018. All rights reserved.