一、map 转 list
Map<Key,Value> map = Maps.newHashMap();
List<Value> list = new ArrayList<Value>(map.values());
二、int[] 转 List<Integer>
int[] id = {1,2,3,4,5,6,7,8,9,10};
List<Integer> list = Arrays.stream( id).boxed().collect(Collectors.toList());
三、String[] 转 Long[]
String ids = {“1”,“2”,“3”,“4”}
Long[] str2lon = (Long[]) ConvertUtils.convert(ids, Long.class);
四、JSONArray 转 List<Long>
List<Long> ids = JSONObject.parseArray(params.getJSONArray("ids").toString(), Long.class);