Wednesday 10th September, 2014
2:20pm to 2:30pm
Java 8 has adopted a new paradigm for iteration, inspired by recent trends and other languages. Traditionally Java iteration has been iterator based. Iterators are complex to write and have many inherent limitations. With the new Stream abstraction, the iteration is no longer driven by the consumer, so the implementor has greater freedom to implement and optimise. The interface also includes new and valuable functionality at your fingertips.
The default Stream support in Java 8, is however still based on iterators. Therefore as a final exercise, we will look at ways to Stream enable code, without the burden of an iterator. This is the final step to make your iteration truly internal.
Sign in to add slides, notes or videos to this session