Skip to content

Commit eca818f

Browse files
committed
Improve description about streaming maps
1 parent 851b649 commit eca818f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,9 @@ As you can see both code snippets are almost identical but the parallel sort is
535535

536536
## Maps
537537

538-
As already mentioned maps don't support streams. Instead maps now support various new and useful methods for doing common tasks.
538+
As already mentioned maps do not directly support streams. There's no `stream()` method available on the `Map` interface itself, however you can create specialized streams upon the keys, values or entries of a map via `map.keySet().stream()`, `map.values().stream()` and `map.entrySet().stream()`.
539+
540+
Furthermore maps support various new and useful methods for doing common tasks.
539541

540542
```java
541543
Map<Integer, String> map = new HashMap<>();

0 commit comments

Comments
 (0)