Sponsored Links
Currently, I'm using a hashmap which maps strings to integers. I've read that using a wrapper for a primitive type in a hashmap has extra cost and was wandering if there is an alternative I could use. I've seen sparsearrays in the sdk, but they map ints to objects but I need the opposite. Is there an alternative to hashmap available for this or should I write my own class to use an array of strings and a seperate array of ints? If I do write my own class, is there a better implementation I could do? --~--~---------~--~----~------------~-------~--~----~