mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
15 lines
558 B
Java
15 lines
558 B
Java
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import java.util.stream.Collectors;
|
|
|
|
class Test {
|
|
{
|
|
Map<?, ?> map = new HashMap<>();
|
|
map.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
|
|
map.entrySet().stream().collect(Collectors.toMap((entry) -> entry.getKey(), Map.Entry::getValue));
|
|
map.entrySet().stream().collect(Collectors.toMap((entry) -> entry.getKey(), (entry) -> entry.getValue()));
|
|
map.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, (entry) -> entry.getValue()));
|
|
}
|
|
}
|