Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there such thing as an ArraySet and ArrayMap?

Tags:

java

I would like a map that preserves the order of the elements if there is such a thing.

I am aware that it would not perform near as well as a HashMap, but I only plan to use it for small/temporary programs.

like image 736
700 Software Avatar asked Oct 15 '10 16:10

700 Software


1 Answers

There is an ArrayMap in the Android support libraries. There are some non-JDK components, but it shouldn't be that difficult to port.

Source

like image 60
Eliezer Avatar answered Oct 15 '22 18:10

Eliezer