I've got a HashMap and I need to fetch an item by its integer value. I notice there's a containsValue() function, but it would appear I still have to iterate through the map to find the correct index anyway.
My question is; why use containsValue() if I'm required to traverse it afterwards?
Also, am I missing the point completely? ;-)
See Question&Answers more detail:os