I meant the hash not the hashcode()and the difference here is?
the keys being unique PK (String) generate a uniform and distinct hashCode()So that's the end of the problem. Use a HashMap.
the hash however need not be unique right!I don't know what you mean by 'the hash'. If it's the same as the hashCode the question is answered. If it isn't, it is irrelevant, as HashMap uses the hashCode.