Abstract
The Stream interface provides chainable operations that can be performed on a series of values. An object that implements the Stream interface is like an Optional that can contain several values instead of just one. Since many of the methods in the Stream interface return streams, very powerful chains of streams can be created. The Collector interface is used to collect Stream Elements into a mutable reduction. The Collectors class contains static methods which create Collector objects that solve various problems.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Ralph Lecessi
About this chapter
Cite this chapter
Lecessi, R. (2019). Use in Streams. In: Functional Interfaces in Java. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4278-0_12
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4278-0_12
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)