Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
In the basic configuration, the Collection interface allows you to retrieve objects through iterator (). A little later in new jdk versions - there is a sequential stream () that calls iterator. And a parallel stream, which is not always supported for all collection implementations. For example, the STDIN class file is only sequential and wrapping it with parallelism is fundamentally impossible.
All other magic methods are just thunks or adapters over an iterator.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question