Supplier Functional Interface
In this lesson, we will look at the supplier functional interface.
Supplier
is an interface that does not take in any argument but produces a value when the get()
function is invoked. Suppliers are useful when we don’t need to supply any value and obtain a result at the same time.
Below are some of the functional interfaces, which can be categorized as a supplier.
Interface Name | Description | Abstract Method |
---|---|---|
Supplier<T> |