April 2019
Intermediate to advanced
360 pages
9h 17m
English
There are eight intermediate operations for streams. These operations are methods and are listed next, separated by their return type:
| Stream | IntStream | LongStream | DoubleStream |
| district() | flatMapToInt() | flatMapToLong() | flatMapToDouble() |
| filter() | maptoInt() | mapToLong() | mapToDouble() |
| flatMap() | |||
| limit() | |||
| map() | |||
| peek() | |||
| skip() | |||
| sorted() |
Understanding the return type of these stream operations will help with their implementation.
Read now
Unlock full access