I have two classes, ClassA and ClassB, as well as a \"many to many\" AssociationClass. I want a structure that holds the associations
ClassA
ClassB
AssociationClass
rmarimon is right that it requires two maps, but I think you want A-B, not A-data and B-data.
So you just simply need two maps:
Hashmap bByA = new HashMap(); Hashmap aByB = new HashMap();
This gives you everything you seem to want, free and easy.