Which is the best way to compute the hash code of a Map, knowing that it may contain entry values of types such as: String, Integer, Object[] ... ?
Map.hashCode() returns a shallow hash code. That means that if you have a String[] in your map, the Map.hashCode() will also use the hash returned by the String[]. Which, unfortunately, is not what I want (the Object.hashCode() implementation). But I want the Arrays.hashCode(String[]) implementation.
So which is the best, generic, approach to handle this ?
equalsmethod.