/** * calculate the array hash (only the first level) */ public static int hash(char[] array) { int seed = SEED; for ( char anArray : array ) { seed = hash( seed, anArray ); } return seed; }
/** * calculate the array hash (only the first level) */ public static int hash(byte[] bytes) { int seed = SEED; for ( byte aByte : bytes ) { seed = hash( seed, aByte ); } return seed; }
/** * calculate the array hash (only the first level) */ public static int hash(Object[] array) { int seed = SEED; for ( Object anArray : array ) { seed = hash( seed, anArray == null ? 0 : anArray.hashCode() ); } return seed; }
/** * calculate the array hash (only the first level) */ public static int hash(byte[] bytes) { int length = bytes.length; int seed = SEED; for (int index = 0 ; index < length ; index++) { seed = hash( seed, bytes[index] ) ; } return seed; }
/** * calculate the array hash (only the first level) */ public static int hash(byte[] bytes) { int length = bytes.length; int seed = SEED; for (int index = 0 ; index < length ; index++) { seed = hash( seed, bytes[index] ) ; } return seed; }
/** * calculate the array hash (only the first level) */ public static int hash(byte[] bytes) { int seed = SEED; for ( byte aByte : bytes ) { seed = hash( seed, aByte ); } return seed; }
/** * calculate the array hash (only the first level) */ public static int hash(char[] array) { int length = array.length; int seed = SEED; for (int index = 0 ; index < length ; index++) { seed = hash( seed, array[index] ) ; } return seed; }
/** * calculate the array hash (only the first level) */ public static int hash(char[] array) { int seed = SEED; for ( char anArray : array ) { seed = hash( seed, anArray ); } return seed; }
/** * calculate the array hash (only the first level) */ public static int hash(char[] array) { int length = array.length; int seed = SEED; for (int index = 0 ; index < length ; index++) { seed = hash( seed, array[index] ) ; } return seed; }
/** * calculate the array hash (only the first level) */ public static int hash(Object[] array) { int length = array.length; int seed = SEED; for (int index = 0 ; index < length ; index++) { seed = hash( seed, array[index] == null ? 0 : array[index].hashCode() ); } return seed; }
/** * calculate the array hash (only the first level) */ public static int hash(Object[] array) { int seed = SEED; for ( Object anArray : array ) { seed = hash( seed, anArray == null ? 0 : anArray.hashCode() ); } return seed; }
/** * calculate the array hash (only the first level) */ public static int hash(Object[] array) { int length = array.length; int seed = SEED; for (int index = 0 ; index < length ; index++) { seed = hash( seed, array[index] == null ? 0 : array[index].hashCode() ); } return seed; }