mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
testdata for IDEA-123731
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
class Test{
|
||||
|
||||
public static void main(String[] args) {
|
||||
Map<String, Collection<Integer>> myMap = null;
|
||||
|
||||
myMap.entrySet().stream()
|
||||
.flatMap(entry -> entry.getValue().stream()
|
||||
.map(val -> new Object() {
|
||||
String key = entry.getKey();
|
||||
Integer value = val;
|
||||
}))
|
||||
.forEachOrdered(o -> {
|
||||
final String key = o.key;
|
||||
final Integer value = o.value;
|
||||
System.out.println("key: " + key + " value: " + value);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user