@FunctionalInterface public interface ThrowingDoubleSupplier
DoubleSupplier
that allows throwing checked exceptions. ThrowingDoubleSupplier
is usually implemented by a lambda and passed to CheckedExceptionHandler.fromDoubleSupplier(ThrowingDoubleSupplier)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
double |
getAsDouble()
Variation of DoubleSupplier.getAsDouble() that allows throwing checked exceptions.
|
double getAsDouble() throws Throwable
DoubleSupplier.getAsDouble()
that allows throwing checked exceptions.
DoubleSupplier.getAsDouble()
Throwable
- if unable to complete
CheckedExceptionHandler.fromDoubleSupplier(ThrowingDoubleSupplier)
, DoubleSupplier.getAsDouble()
Copyright © 2017–2020 Robert Važan. All rights reserved.