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