Possible Duplicate:
Java Hashmap: How to get key from value?
I have a hashmap
private static HashMap<ObjectClass, UUID> projectileSet = new HashMap<ObjectClass, UUID>();
and an unfinished method where i want to return the ObjectClass that corresponds to the UUID
public static LegendaryItem getClass(UUID uniqueId) {
return projectileSet.getKey(uniqueId);
}