Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Java’s LinkedHashMap is a hash table with an additional linked-list structure on the entries that records the insertion order. The map is thus ordered by insertion order, an order that is independent from the keys.

A map ordered by keys is a SortedMap in Java. While ordered, LinkedHashMap is not a SortedMap. In other words, unordered < ordered < sorted.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: