/** * Calculates hash code for long array. */ public static int hashLongArray(int seed, long... longArray) { return hash(seed, longArray); }
/** * Calculates hash code for double array. */ public static int hash(int seed, double[] doubleArray) { if (doubleArray == null) { return 0; } for (double aDouble : doubleArray) { seed = hash(seed, aDouble); } return seed; }
/** * Calculates hash code for boolean array. */ public static int hash(int seed, boolean[] booleanArray) { if (booleanArray == null) { return 0; } for (boolean aBoolean : booleanArray) { seed = hash(seed, aBoolean); } return seed; }
/** * Calculates hash code for char array. */ public static int hash(int seed, char[] charArray) { if (charArray == null) { return 0; } for (char aChar : charArray) { seed = hash(seed, aChar); } return seed; }
/** * Calculates hash code for boolean array. */ public static int hashBooleanArray(int seed, boolean... booleanArray) { return hash(seed, booleanArray); }
/** * Calculates hash code for int array. */ public static int hash(int seed, int[] intArray) { if (intArray == null) { return 0; } for (int anInt : intArray) { seed = hash(seed, anInt); } return seed; }
/** * Calculates hash code for int array. */ public static int hashIntArray(int seed, int... intArray) { return hash(seed, intArray); }
/** * Calculates hash code for long array. */ public static int hash(int seed, long[] longArray) { if (longArray == null) { return 0; } for (long aLong : longArray) { seed = hash(seed, aLong); } return seed; }
/** * Calculates hash code for short array. */ public static int hash(int seed, short[] shortArray) { if (shortArray == null) { return 0; } for (short aShort : shortArray) { seed = hash(seed, aShort); } return seed; }
/** * Calculates hash code for short array. */ public static int hashShortArray(int seed, short... shortArray) { return hash(seed, shortArray); }
/** * Calculates hash code for float array. */ public static int hash(int seed, float[] floatArray) { if (floatArray == null) { return 0; } for (float aFloat : floatArray) { seed = hash(seed, aFloat); } return seed; }
/** * Calculates hash code for char array. */ public static int hashCharArray(int seed, char... charArray) { return hash(seed, charArray); }
/** * Calculates hash code for byte array. */ public static int hash(int seed, byte[] byteArray) { if (byteArray == null) { return 0; } for (byte aByte : byteArray) { seed = hash(seed, aByte); } return seed; }
/** * Calculates hash code for byte array. */ public static int hashByteArray(int seed, byte... byteArray) { return hash(seed, byteArray); }
/** * Calculates hash code for float array. */ public static int hashFloatArray(int seed, float... floatArray) { return hash(seed, floatArray); }
/** * Calculates hash code for doubles. */ public static int hash(int seed, double aDouble) { return hash(seed, Double.doubleToLongBits(aDouble)); }
/** * Calculates hash code for floats. */ public static int hash(int seed, float aFloat) { return hash(seed, Float.floatToIntBits(aFloat)); }