Files
Bas Leijdekkers 67dbbe7dce Add itm "Iterate keys and values of java.util.Map" default Java Live Template
also to demonstrate typeParameterOf() macro

GitOrigin-RevId: ba5fede72fc9391bfa4e97426b0cd706c429fa1d
2022-10-12 18:41:44 +00:00

14 lines
315 B
Java

import java.util.*;
class BarGoo {}
class Foo {
{
Map<String, BarGoo> goos;
for (Map.Entry<String, BarGoo> stringBarGooEntry : goos.entrySet()) {
String key = stringBarGooEntry.getKey();
BarGoo value = stringBarGooEntry.getValue();
<caret>
}
}
}