Module com.machinezoo.noexception
Interface ThrowingDoubleSupplier
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingDoubleSupplier
Variation ofDoubleSupplierthat allows throwing checked exceptions.ThrowingDoubleSupplieris usually implemented by a lambda and passed toCheckedExceptionHandler.fromDoubleSupplier(ThrowingDoubleSupplier). See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetAsDouble()Variation ofDoubleSupplier.getAsDouble()that allows throwing checked exceptions.
-
-
-
Method Detail
-
getAsDouble
double getAsDouble() throws ThrowableVariation ofDoubleSupplier.getAsDouble()that allows throwing checked exceptions.- Returns:
-
see
DoubleSupplier.getAsDouble() - Throws:
-
Throwable- if unable to complete - See Also:
-
CheckedExceptionHandler.fromDoubleSupplier(ThrowingDoubleSupplier),DoubleSupplier.getAsDouble()
-
-