mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 23:20:57 +07:00
17 lines
311 B
Java
17 lines
311 B
Java
|
|
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
|
|
class Test {
|
|
|
|
static class Row {
|
|
public String get(int index) {
|
|
return "test";
|
|
}
|
|
}
|
|
|
|
void foo(List<Row> list) {
|
|
list.stream().collect(
|
|
Collectors.toMap(a -> String.valueOf(a.get(0)), a -> String.valueOf(a.get(1))));
|
|
}
|
|
} |