@FunctionalInterface public interface LongIOSupplier
long
-valued results.
This is the IOException
throwing equivalent of LongSupplier
.Modifier and Type | Method and Description |
---|---|
static LongIOSupplier |
checked(LongSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and unwraps any UncheckedIOException that is thrown by
throwing its cause . |
long |
getAsLong()
Gets a result.
|
static LongSupplier |
unchecked(LongIOSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and wraps any IOException that is thrown in an
UncheckedIOException . |
long getAsLong() throws IOException
IOException
- If an I/O error occurs.static LongSupplier unchecked(LongIOSupplier 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 LongIOSupplier checked(LongSupplier 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.