mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 20:50:54 +07:00
19 lines
332 B
Java
19 lines
332 B
Java
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
|
|
class Scratch {
|
|
private List<Id> entries;
|
|
|
|
public String encode() {
|
|
return entries.stream()
|
|
.map(e -> String.valueOf(e.getId()))
|
|
.collect(Collectors.joining("+"));
|
|
}
|
|
|
|
private static class Id {
|
|
public long getId() {
|
|
return 0;
|
|
}
|
|
}
|
|
}
|