Hi
I am interested in using the right container for a group of paired values, I am unsure what to use. I understand anything which may have a non unique key, it would be wise to stay away from HashMap etc.
The data is in a structure like this, and its way of structuring tracking tags on sites, some are just page source based, and some only appear after an event, so event based:
page based:
homepage; canonical
registration; canonical
faq; DF3768-U
homepage; GA-UFSHS1
event based:
signup; doubleclick
sentmaill; GA-UUA51
Initially I thought of having a two dimensional array, one to store the event based and one to store the page static based. But as the size cannot change, I was unsure.
I plan to iterate over an array dependent on its given event or page basis, drill down on the values that match a page type, say homepage, and scan through all the values for the homepage until it is matched.
I have been reading here, but is there any easy way to do this?
http://stackoverflow.com/questions/1062960/map-implementation-with-duplicate-keys