Advertisement

Suppliers

  • Ralph Lecessi
Chapter

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.

Copyright information

© Ralph Lecessi 2019

Authors and Affiliations

  • Ralph Lecessi
    • 1
  1. 1.Kendall ParkUSA

Personalised recommendations