|
|
|
|
|
by matwood
4501 days ago
|
|
Look at the hashCode() implementations in http://grepcode.com/file/repository.grepcode.com/java/root/j... For example: public static int hashCode(double a[]) { if (a == null)
return 0; int result = 1;
for (double element : a) {
long bits = Double.doubleToLongBits(element);
result = 31 * result + (int)(bits ^ (bits >>> 32));
}
return result;
}
|
|