jdk 8 新特性1

Collection<JSONObject> data = JSONArray.fromObject(result.getData());

 Collection<VolumeState> coll=data.stream().map(volumeStateIO ->(VolumeState) JSONObject.toBean(volumeStateIO, VolumeState.class)).collect(Collectors.toList());

猜你喜欢

转载自www.cnblogs.com/QianYan-Jonty/p/12747261.html
今日推荐