stream()

List<T> list = ~~;

//
list.stream().forEach(item -> {
    ~~
});

//
private Logger log = LoggerFactory.getLogger(class);

Map<T, List<T>> newList = list.stream().collect(Collectors.groupingBy(T::method))
newList.entrySet().forEach(ent -> {
    log.info("Data : {}", ent.getDate());
});

자바 8에서 사용되는 것들 공부해야할듯

results matching ""

    No results matching ""