Possible Duplicate:
How to implement a Map with multiple keys?
Multiple Keys to Single Value Map Java
I have to get the value of an enum based on two incoming string attributes. I have been doing this as map for single values. Now I am faced with making a concatenation. Is there a way to have a map have two keys such that I could
Map.get("attr1","attr2");
and this would return the correct enum. Or will I simply have to concatenate all possible values and use this as the key?
I'm searching for the squeaky clean solution (aren't we all :P)