JAVA
[Java] 6-0강 - Collection Framework
intelligentcm
2020. 12. 3. 19:01
0. Collection
1) Hierarchy of interfaces
Interface List & Interface Set은 Interface Collection의 subtype
Interface Map은 별개의 interface입니다.
2) Interface Collection<E>에 정의된 Method
1. List
0) List
[1] 원소간 중복을 허용 (allows duplicate elements)
[2] 순서가 있고 (ordered collection)
1> Hierarchy of interfaces
2> Interface List<E>에 정의된 Method
2. Set
0) Set
[1] 원소간 중복을 허용하지 않는다. (no duplicate elements)
[2] 원소간 순서가 없다. (no ordering of elements)
1> Hierarchy of interfaces
2> Interface Set<E>에 정의된 Method (Interface Collection<E>와 동일하다.)
3. Map
0) Map
[1] key는 중복을 허용하지 않는다. (no duplicate keys)
[2] key 하나는 최대 1개의 value를 가진다. (each key can map to at most one value)
1> Hierarchy of interfaces
2> Interface Map<K, V>에 정의된 Method
3> Map.Entry
Interface Map 내부의 interface (inner interface)
- Map.Entry<K, V>에 정의된 Method