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 ofDoubleSupplier
that allows throwing checked exceptions.ThrowingDoubleSupplier
is 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 double
getAsDouble()
Variation ofDoubleSupplier.getAsDouble()
that allows throwing checked exceptions.
-
-
-
Method Detail
-
getAsDouble
double getAsDouble() throws Throwable
Variation ofDoubleSupplier.getAsDouble()
that allows throwing checked exceptions.- Returns:
-
see
DoubleSupplier.getAsDouble()
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromDoubleSupplier(ThrowingDoubleSupplier)
,DoubleSupplier.getAsDouble()
-
-