blob: ef90573d91e4978ac717f26059efc873816870d2 [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())
sorted
before: 1,2,3
after: 4,5,6
collect
before: 4,5,6
after: 7,8,9
mappings for sorted
direct:
1 -> 4
2 -> 5
3 -> 6
reverse:
1 <- 4
2 <- 5
3 <- 6
mappings for collect
direct:
4 -> 7
5 -> 8
6 -> 9
reverse:
4 <- 7
5 <- 8
6 <- 9
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0