Maps


HashMap


LinkedHashMap

  • A Map that guarantees the iterator will match the order in which items were added to the map or the order in which they were last accessed.

  • WeakHashMap

  • Items will be processed by the Garbage Collector if there are no other references to those objects–apart from the WeakHashMap.
  • Internally, it references objects through java.lang.ref.WeakReference.

  • IdentityHashMap

  • Two references are considered equal if they point to the same object, rather than by evauating equality through the equals method

  • EnumMap


    TreeMap

  • Implements NavigableMap, which extends SortedMap.

  • ConcurrentHashMap

  • Implements ConcurrentMap interface.

  • ConcurrentSkipListMap

  • Implements ConcurrentNavigableMap interface.

  • Map Selection

    You must be logged in to post a comment.