java编码笔记01

//精简方法(java8,lambda)
List<Integar> categoryTypeList = productInfoList.stream()
.map(e -> e.getCategoryType())
.collection(Collectors.toList());

posted @ 2017-11-20 16:42  sekai  阅读(66)  评论(0编辑  收藏  举报