전체 글

·CS/자바
Stream API 소개SE8에 람다와 함께 추가된 기능이다.Collection 프레임워크를 도와주는/어시스트하는? 프레임워크라고 생각하줄 수 있다컬렉션에 스트림을 열어서 그 안에 있는 데이터들을 프로세싱 해 줄 수 있다컬렉션뿐만아니라 입출력 소스에도 사용할 수 있다.Map-Filter-ReduceStream API 를 사용하기전 Map-Filter-Reduce에 대해 먼저 공부해보자List sales = ...; // this is the list of all the salesint amountSoldInMarch = 0;for (Sale sale: sales) { if (sale.getDate().getMonth() == Month.MARCH) { amountSoldInMarch +..
peageon
이게뭐람