Section 17.3.5 Intermediate Operation: Mapping

• Mapping is an intermediate operation that transforms a stream’s elements to new values and produces a stream containing the resulting (possibly different type) elements.

IntStream method map (a stateless intermediate operation; p. 742) receives an object that implements the IntUnaryOperator functional interface (package java.util.function).

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.