1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| @AllArgsConstructor @Data static class People { private Integer id; private String name; private String englishName; private Integer age; private String sex; private Integer orderNo;
}
private static List<People> list = new ArrayList<>(Arrays.asList( new People(1, "名字1", "Radio", 10, "男", 1), new People(2, "名字2", "MaLi", 20, "男", 3), new People(3, "名字3", "Filter", 10, "男", 2), new People(4, "名字4", "Abc", 10, "男", 6), new People(5, "名字5", "Name", 13, "男", 5), new People(6, "名字6", "English", 20, "男", 4), new People(1, "名字1", "Radio", 10, "男", 1) ));
|