Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Original blog post:

Learning Java 8 Streaming through Test-Driven development

ToUpperCase (map)

Convert elements of a collection to upper case.

FilterCollection (filter)

Filter collection so that only elements with less then 4 characters are returned.

FlatCollection (flatMap)

Flatten multidimensional collection

OldestPerson (max, comparator)

Get oldest person from the collection

Sum (reduce)

Sum all elements of a collection

Kids (filter, map)

Get names of all kids (under age of 18)

PeopleStats (summaryStatistics)

Get people statistics: average age, count, maximum age, minimum age and sum og all ages.

Partitionaing (partitioningBy)

Partition adults and kids

Grouping (groupingBy)

Group people by nationality

You can’t perform that action at this time.