R
- the type of the result of the supplier@ConsumerType
@FunctionalInterface
public interface ThrowableSupplier<R>
java.util.function.Supplier
that can throw an exception.Modifier and Type | Method and Description |
---|---|
R |
get()
Returns a result of type
R if the operation succeeds; otherwise
throws an exception. |
R get() throws java.lang.Exception
R
if the operation succeeds; otherwise
throws an exception.R
if the operation succeeds; an
exception otherwisejava.lang.Exception