I have to associate an Object to a n keys, such as --> .
I am considering using Commons MultiKeyMap or nesting HashMaps (such as Map<K1,Map<K2,Map<K3,O1>>>
).
Question: I was wondering which alternative generates the least memory overhead.
Note: I am not particularly concerned about speed of put and get.