Three examples of Java 8 new features in language and APIs and comparisons with equivalent code constructs using Java 7: parallel streams, lambda expressions, simplified map/reduce. Examples also make use of the new Date/Time API to show in comparison with old APIs how simplified is now the management of dates and times.
Java
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
pom.xml
readme.md

readme.md

deors.demos.misc.java8

Three examples of Java 8 new features in language and APIs.

deors.demos.misc.java8.filters

Introduction to Stream API and examples of filters and maps over a collection of Person beans.

deors.demos.misc.java8.datelist

Examples of how to work with lists of dates, comparing Java 7 with Java 8. Introducing the new Java Date/Time API.

deors.demos.misc.java8.sumproduct

An example of a map-reduce simplified idiom using the Stream API, versus a Java 7 version using the Fork/Join API.