java Ramda 리스트 컬랙션 데이터 예제
List<GoodOrderInfoUseField> goodOrderInfoUseFieldList =
goodOrderInfoType.getGoodOrderInfoUseFields();
List<GoodOrderInfoTypeCats> goodOrderInfoTypeCatsList =
goodOrderInfoUseFieldList.stream()
.map(goodOrderInfoUseField -> goodOrderInfoUseField
.getGoodOrderInfoTypeCats()).collect(Collectors.toList());
goodOrderInfoUseFieldList.stream()
.map(goodOrderInfoUseField -> goodOrderInfoUseField.getGoodOrderInfoTypeCats())
.forEach(x -> System.out.println(x));
Long count = goodOrderInfoUseFieldList.stream()
.map(goodOrderInfoUseField -> goodOrderInfoUseField.getGoodOrderInfoTypeCats()
.getIdx()).count();
댓글