Home LinkedHashMap
Post
Cancel

LinkedHashMap

LinkedHashMap

LinkedHashMap 이란?

  • Map 인터페이스를 구현한 Map 구현체 중 하나
  • LinkedList로 저장되어 순서가 있다.

내용 특징

  1. 내부적으로 LinkedList를 사용하므로 값을 출력할 때 순서대로 출력되어 나온다.
  2. 순서 말고는 HashMap과 다른 것이 없음
  3. 즉, 삽입 순서를 보장하는 HashMap이다.
  4. get = O(1), containsKey = O(1), next = O(1)

참고 사이트

This post is licensed under CC BY 4.0 by the author.