hey there
The game I’m working on heavily depends on non-incremental numbers associated with objects (for many different purposes), and I can’t find a good type of collection for this. ArrayList, Vector and LinkedList all depend on incremental indices, all other collections associate Objects with Objects. Right now I’m using HashMap<Integer, Object>, but I guess that’s far from being the optimal solution.
Is there any int -> Object collection implementation which I simply overlooked? If that’s not the case, is HashMap<Integer, Object> a good enough solution or should I write my own collection for this purpose?