/** * Return a hash code based on the contents of the specified array. * If <code>array</code> is <code>null</code>, this method returns 0. */ public static int nullSafeHashCode(Object[] array) { if (array == null) { return 0; } int hash = INITIAL_HASH; int arraySize = array.length; for (int i = 0; i < arraySize; i++) { hash = MULTIPLIER * hash + nullSafeHashCode(array[i]); } return hash; }
return nullSafeHashCode((Object[]) obj); return nullSafeHashCode((boolean[]) obj); return nullSafeHashCode((byte[]) obj); return nullSafeHashCode((char[]) obj); return nullSafeHashCode((double[]) obj); return nullSafeHashCode((float[]) obj); return nullSafeHashCode((int[]) obj); return nullSafeHashCode((long[]) obj); return nullSafeHashCode((short[]) obj);
/** * Return a hash code based on the contents of the specified array. * If <code>array</code> is <code>null</code>, this method returns 0. */ public static int nullSafeHashCode(Object[] array) { if (array == null) { return 0; } int hash = INITIAL_HASH; int arraySize = array.length; for (int i = 0; i < arraySize; i++) { hash = MULTIPLIER * hash + nullSafeHashCode(array[i]); } return hash; }
/** * Return a hash code based on the contents of the specified array. * If <code>array</code> is <code>null</code>, this method returns 0. */ public static int nullSafeHashCode(Object[] array) { if (array == null) { return 0; } int hash = INITIAL_HASH; int arraySize = array.length; for (int i = 0; i < arraySize; i++) { hash = MULTIPLIER * hash + nullSafeHashCode(array[i]); } return hash; }
return nullSafeHashCode((Object[]) obj); return nullSafeHashCode((boolean[]) obj); return nullSafeHashCode((byte[]) obj); return nullSafeHashCode((char[]) obj); return nullSafeHashCode((double[]) obj); return nullSafeHashCode((float[]) obj); return nullSafeHashCode((int[]) obj); return nullSafeHashCode((long[]) obj); return nullSafeHashCode((short[]) obj);
return nullSafeHashCode((Object[]) obj); return nullSafeHashCode((boolean[]) obj); return nullSafeHashCode((byte[]) obj); return nullSafeHashCode((char[]) obj); return nullSafeHashCode((double[]) obj); return nullSafeHashCode((float[]) obj); return nullSafeHashCode((int[]) obj); return nullSafeHashCode((long[]) obj); return nullSafeHashCode((short[]) obj);