Java/API

[Java API] Interface Collection<E>

정코드 2019. 4. 4. 09:37


Interface Collection<E>


Type Parameters:

E - the type of elements in this collection




public interface Collection<E>

extends Iterable<E>


Collection 클래스의 최상위 인터페이스입니다. Collection은 여러 개의 요소들을 하나로 묶어주는 클래스를 의미합니다.



Method


default Stream<E> stream()


해당 Collection의 요소들을 Stream<E>로 반환합니다.


Type Parameters:

E - 해당 Collection의 요소 타입