A Map of View instances?
- by user291701
Is it possible to keep references to views keyed off of their hashCode? Something like:
Map<Integer, View> views;
views.put(view1.hashCode(), view1);
views.put(view2.hashCode(), view2);
views.put(viewN.hashCode(), viewN);
I have a few in my view hierarchy and am downloading images for each. I want to be able to iterate over them quickly, or see if I've already previously added one (hence the map).