Interface Checked.DoubleSupplier<E extends Throwable>

    • Method Detail

      • getAsDouble

        double getAsDouble()
                    throws E extends Throwable
        Get the supplied value.
        E extends Throwable
      • ederWrap

        default DoubleSupplier ederWrap()
        Description copied from interface: Checked
        Wraps this Checked functional interfaces as its corresponding Java functional interface WT, which possibly does not allow checked exceptions.

        Checked exceptions of type EX may still, in reality, be thrown. This method is not intended to be called directly; it is used transparently by in(...), which passes the wrapper type into code that requires it, but re-exposes the original checked exception type to the compiler.

        Specified by:
        ederWrap in interface Checked<DoubleSupplier,​E extends Throwable>
      • use

        static <E extends ThrowableChecked.DoubleSupplier<E> use​(Checked.DoubleSupplier<E> o)
        Shapes a lambda or method reference into an instance of this functional interface.

        This is simply an identity function that can take the place of a more unwieldy cast.

        Type Parameters:
        E - Least upper bound of exception types o can throw.
        o - The implementing lambda or method reference.