| Author |
What is a data structure for Map that preserves insert order?
|
Dave Alvarado
Ranch Hand
Joined: Jul 02, 2008
Posts: 434
|
|
Hi,
I'm using Java 1.6. Is there a data structure similar to Map (or implementation of Map) that will preserve the order in which I insert elements via
map.put(key1,value1)
map.put(key2,value2);
map.put(key3,value3)
? Ultimately I am looking to get back a list of Map.Entry<Object, Object> objects from the aforementioned data structure.
Thanks, - Dave
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56543
|
|
|
LinkedHashMap
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: What is a data structure for Map that preserves insert order?
|
|
|