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