HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📝
남득윤 학습 저장소
/
자바 콜렉션
자바 콜렉션
자바 콜렉션

자바 콜렉션

태그
Java
Collection
@) 참고 - Oracle - Collections Framework Overview

Introduction

Collection 이란 객체의 그룹을 표현하는 객체.
Collection framework 는 컬렉션을 표현하며 컬렉션을 내부 구현과 독립적으로 조작할 수 있게 해주는 일관성 있는 설계
 
collection framework를 활용 했을때의 장점은 아래와 같다.
  • Reduces programming effort
  • Increases performance
  • Provides interoperability between unrelated APIs
  • Reduces the effort required to learn APIs (????)
  • Fosters software reuse
 
 

Collection Interfaces & Implementations

List

 

Set

#️⃣
HashSet & TreeSet
 
🚃
List

Queue

👬
Queue
BlockingQueue
BlockingQueue
notion image

Map

  • Map은 true collections 는 아니지만 collection-view 연산을 제공함
    • e.g.) HashMap.entrySet()
    • 이를 통해 Map을 collection 처럼 조작할 수 있음
🌳
HashMap & TreeMap
🧵
HashMap & ConcurrentHashMap
notion image
 

General-purpose implementations

💎
Java Collection - ImmutableCollections