T
- the type of results supplied by this supplierE
- the type of exception thrown from the supplier@FunctionalInterface public interface ThrowingSupplier<T,E extends Throwable>
There is no requirement that a new or distinct result be returned each time the supplier is invoked.
This is a functional interface
whose functional method is get()
.
Modifier and Type | Method and Description |
---|---|
T |
get()
Gets a result.
|