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
'JAVA' 카테고리의 다른 글
[Java] 6-2강 - Collection Framework 2 (Iterator, Arrays, Comparable) (0) | 2020.12.04 |
---|---|
[Java] 6-1강 - Collection Framework 1 (List - ArrayList, Vector, LinkedList, Stack & Queue) (0) | 2020.12.03 |
[Java] 5-2강 - Generic Programming 2 (generic 기법 응용) (0) | 2020.12.03 |
[Java] 5-1강 - Generic Programming 1 (generic의 기본) (0) | 2020.11.17 |
[Java] 4-1강 - 예외 처리 (0) | 2020.11.17 |