Java Collections: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
=Overview=
=Overview=


When using a Collection, the programmer manages the iteration over the collection elements, in a process called ''external iteration''. The [[Java_8_Streams_API#Overview|Streams API]] provides an alternative way of processing Collections using ''internal iteration''.
When using a Collection, the programmer manages the iteration over the collection elements, in a process called <span id="External_Iteration"></span>''external iteration''. The [[Java_8_Streams_API#Overview|Streams API]] provides an alternative way of processing Collections using ''internal iteration''. Collections are mostly about storing and accessing data, whereas the Streams API is mostly about describing computations on data.
 
=The Collection Interface=

Latest revision as of 18:33, 30 March 2018

External

Internal

Overview

When using a Collection, the programmer manages the iteration over the collection elements, in a process called external iteration. The Streams API provides an alternative way of processing Collections using internal iteration. Collections are mostly about storing and accessing data, whereas the Streams API is mostly about describing computations on data.

The Collection Interface