I am developing android application in which I was using HashTable for storing KeyValue pair. At some stage I have to retrieve all values against keys. (I don't have thready safety issue). HashTable didn't satisfy performance as it started to take more time as data increases because of iteration. After some search on Google, I came to know about two following Apis for storing KeyValue.
Apache Commons Collection
Google Guava Collections
I have also checked this question Apache Commons vs. Guava (formerly "Google Collections")
But I want explanation more then just Generic support difference as in my case I am just using String, String for keyValue pair.
Should I go with any of them or I should use HashMap.
This link explain simple example of HashMap, Apache Commons, Google Guav collection. http://java.dzone.com/articles/hashmap-%E2%80%93-single-key-and