final class Data {
final public String s;
final public int i;
private Data(String s, int i) {
this.s = s;
this.i = i;
}
public static Data of(String s, int i) {
return new Data(s, i);
}
}
List<Data> datas = Arrays.asList(Data.of("one", 1));