将集合按指定大小拆分,放入一个新的集合返回 /** * 拆分集合 * @param resultList 原集合 * @param count 指定的长度 * @return resultLists 拆分后的集合 */ public static List<List<T>> splitList(List<T> resultList, int count) { // 判断拆分的集合是否为空,或者拆分大小是否小于1,如果是,无法拆分 if (resultList == null || count < 1) { return null