@FunctionalInterface public interface DoubleIOSupplier
double
-valued results.
This is the IOException
throwing equivalent of DoubleSupplier
.Modifier and Type | Method and Description |
---|---|
static DoubleIOSupplier |
checked(DoubleSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and unwraps any UncheckedIOException that is thrown by
throwing its cause . |
double |
getAsDouble()
Gets a result.
|
static DoubleSupplier |
unchecked(DoubleIOSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and wraps any IOException that is thrown in an
UncheckedIOException . |
double getAsDouble() throws IOException
IOException
- If an I/O error occurs.static DoubleSupplier unchecked(DoubleIOSupplier supplier)
supplier
supplier, and wraps any IOException
that is thrown in an
UncheckedIOException
.supplier
- The supplier that will provide results for the returned supplier.supplier
supplier, and wraps any IOException
that is thrown in an
UncheckedIOException
.NullPointerException
- If supplier
is null
.static DoubleIOSupplier checked(DoubleSupplier supplier)
supplier
supplier, and unwraps any UncheckedIOException
that is thrown by
throwing its cause
.supplier
- The supplier that will provide results for the returned supplier.supplier
supplier, and unwraps any UncheckedIOException
that is thrown.NullPointerException
- If supplier
is null
.Copyright © 2017–2020. All rights reserved.