blob: 894df0a2862e6bb187363e74e3a95cf1d27c94b5 [file]
LineBreakpoint created at LinkedChains.java:8
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!RT_JAR! LinkedChains
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
LinkedChains.java:8
Stream
.of(1, 2, 3, 4, 5, 6).map(x -> x * x).collect(Collectors.toList())
.stream().filter(x -> x % 2 == 0).collect(Collectors.toList())
.stream().sorted().collect(Collectors.toList())
.stream()
.distinct()
.collect(Collectors.toList())
distinct
before: 1,3,5
after: 2,4,6
collect
before: 2,4,6
after: 7,8,9
mappings for distinct
direct:
1 -> 2
3 -> 4
5 -> 6
reverse:
1 <- 2
3 <- 4
5 <- 6
mappings for collect
direct:
2 -> 7
4 -> 8
6 -> 9
reverse:
2 <- 7
4 <- 8
6 <- 9
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0