这是计算的哈希码的最好办法Map,知道它可能包含的类型的项值,如:String,Integer,Object[]...?
Map
String
Integer
Object[]
Map.hashCode()返回浅哈希码.这意味着如果你String[]的地图中有一个,那么它也Map.hashCode()将使用由你返回的哈希String[].不幸的是,这不是我想要的(Object.hashCode()实施).但我想要Arrays.hashCode(String[])实施.
Map.hashCode()
String[]
Object.hashCode()
Arrays.hashCode(String[])
那么处理这个问题的最佳,通用的方法是什么?
java map hashcode
hashcode ×1
java ×1
map ×1