T
- the value type returned@FunctionalInterface public interface Supplier<T>
This interface was added to allow throwing any subclass of Throwable
s,
which is not directly possible with the Java standard Callable
interface.
Modifier and Type | Method and Description |
---|---|
T |
get()
Produces a value or throws an exception.
|