Supplier Interface Java8
Supplier
The Java Supplier interface is a functional interface that represents a function that supplies a value of some sorts. The Supplier interface can also be thought of as a factory interface. Here is an example implementation of the Java Supplier interface:
#java #minoractivity