Abstract
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.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Ralph Lecessi
About this chapter
Cite this chapter
Lecessi, R. (2019). Suppliers. In: Functional Interfaces in Java. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4278-0_7
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4278-0_7
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4277-3
Online ISBN: 978-1-4842-4278-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)