title: How can I get the Key for a specific Value in a HashMap?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1383797/java-hashmap-how-to-get-key-from-value">Java Hashmap: How to get key from value?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a hashmap </p>
  
  <pre><code>private static HashMap&lt;ObjectClass, UUID&gt; projectileSet = new HashMap&lt;ObjectClass, UUID&gt;();
  </code></pre>
  
  <p>and an unfinished method where i want to return the ObjectClass that corresponds to the UUID</p>
  
  <pre><code>public static LegendaryItem getClass(UUID uniqueId) {
      return projectileSet.getKey(uniqueId);
  
  }
  </code></pre>