摘要:
/** * 将Json对象转换成Map * * @param jsonObject * json对象 * @return Map对象 * @throws JSONException */ public static Map toMap(String jsonString) throws JSONEx 阅读全文
摘要:
以sadd序列化后存进缓存: for (Room room : roomList) { String strrid=room.getRid();//获取房间id Map parse = Document.parse(JSON.toJSONString(room));//转map<String,Str 阅读全文
摘要:
Room需要先实现序列化implements Serializable ArrayList<Room> list=null; roomList = getDaoRoomListData(filterParams, sort, order, skip, limit); List<String> rid 阅读全文
摘要:
list排序: //对list排序 @SuppressWarnings("rawtypes") public void order(List<Room> list){ Collections.sort(list,new Comparator<Room>() { @Override public in 阅读全文