title: A map with two keys
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/822322/how-to-implement-a-map-with-multiple-keys">How to implement a Map with multiple keys?</a><br>
    <a href="https://stackoverflow.com/questions/6768963/multiple-keys-to-single-value-map-java">Multiple Keys to Single Value Map Java</a></p>
  </blockquote>
  
  
  
  <p>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</p>
  
  <pre><code>Map.get("attr1","attr2");
  </code></pre>
  
  <p>and this would return the correct enum. Or will I simply have to concatenate all possible values and use this as the key?</p>
  
  <p>I'm searching for the squeaky clean solution (aren't we all :P)</p>