1cfd3bbb56
Topic_CSS/Topic_HTML/Topic_JavaScript/Topic_Prompt/Topic_Comfyui 등 기존 카테고리 폴더를 정리하고, Topic_Graphic/Dev 등 신규 산출물과 Topics 내부 세션/메모리 기록을 동기화.
63 lines
3.2 KiB
Markdown
63 lines
3.2 KiB
Markdown
---
|
|
id: java-collections
|
|
title: "Java Collections"
|
|
category: "Programming_Language"
|
|
status: "draft"
|
|
verification_status: "conceptual"
|
|
canonical_id: ""
|
|
aliases: ["Collections Framework", "자바 컬렉션 프레임워크"]
|
|
duplicate_of: ""
|
|
source_trust_level: "B"
|
|
confidence_score: 0.88
|
|
created_at: 2026-07-04
|
|
updated_at: 2026-07-04
|
|
review_reason: ""
|
|
merge_history: []
|
|
tags: ["java", "programming", "w3schools", "collections-framework"]
|
|
raw_sources: ["https://www.w3schools.com/java/java_collections.asp"]
|
|
applied_in: []
|
|
github_commit: ""
|
|
---
|
|
|
|
# [[Java Collections]]
|
|
|
|
## 🎯 한 줄 통찰 (One-line insight)
|
|
The Collections Framework separates WHAT a structure can do (interfaces like List/Set/Map) from HOW it does it (classes like ArrayList/HashSet/HashMap) — the toolbox analogy makes explicit that List defines a contract while ArrayList and LinkedList are two different tools fulfilling that same contract differently. [S1]
|
|
|
|
## 🧠 핵심 개념 (Core concepts)
|
|
- **Java Collections Framework** — a set of interfaces (`List`, `Set`, `Map`) plus implementing classes, all in `java.util`. [S1]
|
|
- **`List` interface** — ordered, allows duplicates; implemented by `ArrayList`, `LinkedList`. [S1]
|
|
- **`Set` interface** — unique elements only; implemented by `HashSet`, `TreeSet`, `LinkedHashSet`. [S1]
|
|
- **`Map` interface** — key-value pairs with unique keys; implemented by `HashMap`, `TreeMap`, `LinkedHashMap`. [S1]
|
|
- **Selection heuristic** — List for order+duplicates+index access; Set for uniqueness; Map for key-based pairs. [S1]
|
|
|
|
## 📖 세부 내용 (Details)
|
|
- Class overview table: ArrayList (resizable, ordered, duplicates), LinkedList (fast insert/remove), HashSet (unordered unique), TreeSet (sorted unique, natural order), LinkedHashSet (insertion-order unique), HashMap (unordered key-value), TreeMap (sorted key-value by key), LinkedHashMap (insertion-order key-value). [S1]
|
|
|
|
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
|
|
소스에서 모순되는 정보는 발견되지 않음.
|
|
|
|
## 🛠️ 적용 사례 (Applied in summary)
|
|
현재 발견된 실제 적용 사례가 없습니다 — 인터페이스와 구현 클래스의 분리 구조가 List/Set/Map 각 챕터의 이론적 틀을 제공한다. [S1]
|
|
|
|
## 💻 코드 패턴 (Code patterns)
|
|
해당 챕터는 개념/분류표 중심으로 별도 실행 코드 예제가 없음 — 다음 챕터([[Java List]])에서 List 인터페이스 실습이 시작된다.
|
|
|
|
## ✅ 검증 상태 및 신뢰도
|
|
- **상태:** draft
|
|
- **검증 단계:** conceptual
|
|
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
|
|
- **신뢰 점수:** 0.88
|
|
- **중복 검사 결과:** 신규 생성 (New discovery)
|
|
|
|
## 🔗 지식 그래프 (Knowledge Graph)
|
|
- **상위/루트:** [[Java Tutorial]]
|
|
- **관련 개념:** [[Java Data Structures]], [[Java List]], [[Java Set]], [[Java Map]]
|
|
- **참조 맥락:** 인터페이스-구현체 분리 구조 — List/Set/Map 각 챕터의 이론적 틀.
|
|
|
|
## 📚 출처 (Sources)
|
|
- [S1] W3Schools — Java Collections Framework — https://www.w3schools.com/java/java_collections.asp
|
|
|
|
## 📝 변경 이력 (Change history)
|
|
- 2026-07-04: Initial draft synthesized from the W3Schools "Java Collections Framework" page (Astra wiki-curation, P-Reinforce v3.1 format).
|