collect

Java

Stream collect 알아보기

Collector 인터페이스는 collect 함수를 사용할 때 넣어줘야 하는 객체인데요 public interface Collector { /** * A function that creates and returns a new mutable result container. * * @return a function which returns a new, mutable result container */ Supplier supplier(); /** * A function that folds a value into a mutable result container. * * @return a function which folds a value into a mutable result container */ BiCons..

be-student
'collect' 태그의 글 목록