MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / main

Method main

collectiontopics/FunctionalMap.java:12–18  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

10
11public class FunctionalMap {
12 public static void main(String[] args) {
13 MAP.entrySet().stream()
14 .map(Map.Entry::getValue)
15 .filter(v -> v.startsWith("Dark"))
16 .map(v -> v.replaceFirst("Dark", "Hot"))
17 .forEach(System.out::println);
18 }
19}
20/* Output:
21HotBlue

Callers

nothing calls this directly

Calls 2

streamMethod · 0.45
entrySetMethod · 0.45

Tested by

no test coverage detected