标签:集合排序
一:工具类
List<Device> deviceList = deviceAction.listDevices(qc); SortListUtil<Device> sortList = new SortListUtil<Device>(); sortList.Sort(deviceList, "getIsConnect", "desc"); for(Device s: deviceList){ System.out.println(s.getRegistrationId()+","+s.getIsConnect()); }
标签:集合排序
原文地址:http://blog.csdn.net/u013628152/article/details/44172831