/** * Combines hashCode of previous elements sequence and value's hashCode. * @param hashCode previous hashCode value * @param value new element * @return combined hashCode */ public static int combine(int hashCode, long value) { int v = (int) (value ^ (value >>> 32)); return combine(hashCode, v); }
/** * Appends value's hashCode to the current hashCode. * @param value new element * @return this */ public final HashCode append(Object value) { hashCode = combine(hashCode, value); return this; } }
/** * Appends value's hashCode to the current hashCode. * @param value new element * @return this */ public final HashCode append(boolean value) { hashCode = combine(hashCode, value); return this; }
/** * Combines hashCode of previous elements sequence and value's hashCode. * @param hashCode previous hashCode value * @param value new element * @return combined hashCode */ public static int combine(int hashCode, long value) { int v = (int) (value ^ (value >>> 32)); return combine(hashCode, v); }
/** * Appends value's hashCode to the current hashCode. * @param value new element * @return this */ public final HashCode append(int value) { hashCode = combine(hashCode, value); return this; }
/** * Combines hashCode of previous elements sequence and value's hashCode. * @param hashCode previous hashCode value * @param value new element * @return combined hashCode */ public static int combine(int hashCode, boolean value) { int v = value ? 1231 : 1237; return combine(hashCode, v); }
/** * Appends value's hashCode to the current hashCode. * @param value new element * @return this */ public final HashCode append(float value) { hashCode = combine(hashCode, value); return this; }
/** * Appends value's hashCode to the current hashCode. * @param value new element * @return this */ public final HashCode append(double value) { hashCode = combine(hashCode, value); return this; }
/** * Appends value's hashCode to the current hashCode. * @param value new element * @return this */ public final HashCode append(long value) { hashCode = combine(hashCode, value); return this; }
/** * Appends value's hashCode to the current hashCode. * @param value new element * @return this */ public final HashCode append(long value) { hashCode = combine(hashCode, value); return this; }
/** * Appends value's hashCode to the current hashCode. * @param value new element * @return this */ public final HashCode append(float value) { hashCode = combine(hashCode, value); return this; }
/** * Appends value's hashCode to the current hashCode. * @param value new element * @return this */ public final HashCode append(double value) { hashCode = combine(hashCode, value); return this; }
/** * Combines hashCode of previous elements sequence and value's hashCode. * @param hashCode previous hashCode value * @param value new element * @return combined hashCode */ public static int combine(int hashCode, boolean value) { int v = value ? 1231 : 1237; return combine(hashCode, v); }
/** * Appends value's hashCode to the current hashCode. * @param value new element * @return this */ public final HashCode append(int value) { hashCode = combine(hashCode, value); return this; }
/** * Combines hashCode of previous elements sequence and value's hashCode. * @param hashCode previous hashCode value * @param value new element * @return combined hashCode */ public static int combine(int hashCode, float value) { int v = Float.floatToIntBits(value); return combine(hashCode, v); }
/** * Combines hashCode of previous elements sequence and value's hashCode. * @param hashCode previous hashCode value * @param value new element * @return combined hashCode */ public static int combine(int hashCode, double value) { long v = Double.doubleToLongBits(value); return combine(hashCode, v); }
/** * Combines hashCode of previous elements sequence and value's hashCode. * @param hashCode previous hashCode value * @param value new element * @return combined hashCode */ public static int combine(int hashCode, Object value) { return combine(hashCode, value.hashCode()); }
/** * Combines hashCode of previous elements sequence and value's hashCode. * @param hashCode previous hashCode value * @param value new element * @return combined hashCode */ public static int combine(int hashCode, float value) { int v = Float.floatToIntBits(value); return combine(hashCode, v); }
/** * Combines hashCode of previous elements sequence and value's hashCode. * @param hashCode previous hashCode value * @param value new element * @return combined hashCode */ public static int combine(int hashCode, double value) { long v = Double.doubleToLongBits(value); return combine(hashCode, v); }
/** * Combines hashCode of previous elements sequence and value's hashCode. * @param hashCode previous hashCode value * @param value new element * @return combined hashCode */ public static int combine(int hashCode, Object value) { return combine(hashCode, value.hashCode()); }