Suppliers
Ralph Lecessi · Apress eBooks · 2019
Supplier is a functional interface that is used to generate data. A Supplier object is specified with type para meter T. Its functional method, called get, takes no arguments and returns an object of type T. Using suppliers to wrap each user prompt can help to simplify the logic of a program.