@Override public int hashCode() { return Objects.hashCode( hitCount, missCount, loadSuccessCount, loadExceptionCount, totalLoadTime, evictionCount); }
/** * {@inheritDoc} * * <p><b>Note:</b> This hash code is consistent with exact equality of the calculated statistics, * including the floating point values. See the note on {@link #equals} for details. */ @Override public int hashCode() { return Objects.hashCode(xStats, yStats, sumOfProductsOfDeltas); }
@Override public int hashCode() { return Objects.hashCode(name, parameterTypes); } }
/** * {@inheritDoc} * * <p><b>Note:</b> This hash code is consistent with exact equality of the calculated statistics, * including the floating point values. See the note on {@link #equals} for details. */ @Override public int hashCode() { return Objects.hashCode(count, mean, sumOfSquaresOfDeltas, min, max); }
@Override public int hashCode() { return Objects.hashCode(name, parameterTypes); }
@Override public int hashCode() { return Objects.hashCode(function, resultEquivalence); }
@Override public int hashCode() { return Objects.hashCode(host, port); }
@Override public int hashCode() { return Objects.hashCode(numHashFunctions, funnel, strategy, bits); }
@Override public int hashCode() { return Objects.hashCode(left, right); }
@Override public int hashCode() { return Objects.hashCode(var.getGenericDeclaration(), var.getName()); }
@Override public int hashCode() { return alphabet.hashCode() ^ Objects.hashCode(paddingChar); } }
@Override public int hashCode() { // racy single-check idiom int h = hashCode; if (h == 0) { h = Objects.hashCode(type, subtype, parametersAsMap()); hashCode = h; } return h; }
@Override public int hashCode() { return Objects.hashCode(closeable, thrown, suppressed); }
@Override public int hashCode() { // Pattern uses Object.hashCode, so we have to reach // inside to build a hashCode consistent with equals. return Objects.hashCode(pattern.pattern(), pattern.flags()); }
public void testHashCode() throws Exception { int h1 = Objects.hashCode(1, "two", 3.0); int h2 = Objects.hashCode(new Integer(1), new String("two"), new Double(3.0)); // repeatable assertEquals(h1, h2); // These don't strictly need to be true, but they're nice properties. assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, 2)); assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, null, 2)); assertTrue(Objects.hashCode(1, null, 2) != Objects.hashCode(1, 2)); assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(3, 2, 1)); assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(2, 3, 1)); }
@Override public void testHashCode() { table = ArrayTable.create(asList("foo", "bar"), asList(1, 3)); table.put("foo", 1, 'a'); table.put("bar", 1, 'b'); table.put("foo", 3, 'c'); int expected = Objects.hashCode("foo", 1, 'a') + Objects.hashCode("bar", 1, 'b') + Objects.hashCode("foo", 3, 'c') + Objects.hashCode("bar", 3, 0); assertEquals(expected, table.hashCode()); }
@Override public int hashCode() { return Objects.hashCode(getRowKey(), getColumnKey(), getValue()); }
@Override public int hashCode() { return Objects.hashCode( comparator, getLowerEndpoint(), getLowerBoundType(), getUpperEndpoint(), getUpperBoundType()); }
@Override public int hashCode() { return Objects.hashCode( entriesOnlyOnLeft(), entriesOnlyOnRight(), entriesInCommon(), entriesDiffering()); }