JDK1.8學習

List<OrderGoodsDetail> olist = BeanMapper.mapList(list,OrderGoodsDetail.class);

List<String> list2 = Arrays.asList("123", "45634", "7892", "abch", "sdfhrthj", "mvkd");
list2.stream().forEach(e ->{
    if(e.length() >= 5){
        return;
    }
    System.out.println(e);
});

olist.stream().forEach(e ->{
    e.setCoverImgUrl(ImgUrlUtil.getFullImgUrl(e.getCoverImgUrl());
});
相關文章
相關標籤/搜索