/** Returns an unspecified hash code for the contents of this immutable array. */ @Override public int hashCode() { int hash = 1; for (int i = start; i < end; i++) { hash *= 31; hash += Longs.hashCode(array[i]); } return hash; }
@Override public int hashCode() { int result = 1; for (int i = start; i < end; i++) { result = 31 * result + Longs.hashCode(array[i]); } return result; }
@Override public int hashCode() { return Longs.hashCode(value); }
@Override public int hashCode() { return Longs.hashCode(sequenceId); }
/** Returns an unspecified hash code for the contents of this immutable array. */ @Override public int hashCode() { int hash = 1; for (int i = start; i < end; i++) { hash *= 31; hash += Longs.hashCode(array[i]); } return hash; }
@Override public int hashCode() { int result = 1; for (int i = start; i < end; i++) { result = 31 * result + Longs.hashCode(array[i]); } return result; }
@Override public int hashCode() { return Longs.hashCode(value); }
@Override public int hashCode() { int result = 1; for (int i = start; i < end; i++) { result = 31 * result + Longs.hashCode(array[i]); } return result; }
/** Returns an unspecified hash code for the contents of this immutable array. */ @Override public int hashCode() { int hash = 1; for (int i = start; i < end; i++) { hash *= 31; hash += Longs.hashCode(array[i]); } return hash; }
@Override public int hashCode() { return Longs.hashCode(value); }
@Override public int hashCode() { int result = Longs.hashCode(point); result = 31 * result + (notUsed ? 1 : 0); return result; } }
@Override public int hashCode() { return Longs.hashCode(value); }
@Override public int hashCode() { return Longs.hashCode(value); }
/** @return what {@link Double#hashCode()} would return for the same value */ public static int hashDouble(double value) { return Longs.hashCode(Double.doubleToLongBits(value)); }
@GwtIncompatible // Long.hashCode returns different values in GWT. public void testHashCode() { for (long value : VALUES) { assertEquals("hashCode for " + value, ((Long) value).hashCode(), Longs.hashCode(value)); } }
/** * Computes a hash code from attributes: {@code captureTime}, {@code transactionCount}, {@code errorCount}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + Longs.hashCode(captureTime); h += (h << 5) + Longs.hashCode(transactionCount); h += (h << 5) + Objects.hashCode(errorCount); return h; }
/** * Computes a hash code from attributes: {@code totalNanos}, {@code count}, {@code active}. * @return hashCode value */ @Override public int hashCode() { @Var int h = 5381; h += (h << 5) + Longs.hashCode(totalNanos); h += (h << 5) + Longs.hashCode(count); h += (h << 5) + Booleans.hashCode(active); return h; }
/** * Computes a hash code from attributes: {@code value}, {@code captureTick}. * @return hashCode value */ @Override public int hashCode() { @Var int h = 5381; h += (h << 5) + Doubles.hashCode(value); h += (h << 5) + Longs.hashCode(captureTick); return h; }