/** * {@inheritDoc} */ @Override public int hashCode() { return config.hashCode(); } }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = config.hashCode(); result = 31 * result + (int) (timestamp ^ (timestamp >>> 32)); result = 31 * result + value.hashCode(); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = config.hashCode(); long n = count.get(); result = 31 * result + (int) (n ^ (n >>> 32)); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = config.hashCode(); result = 31 * result + monitors.hashCode(); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = baseConfig.hashCode(); result = 31 * result + monitors.hashCode(); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = config.hashCode(); result = 31 * result + function.hashCode(); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = config.hashCode(); result = 31 * result + field.hashCode(); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = config.hashCode(); result = 31 * result + monitor.hashCode(); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = config.hashCode(); result = 31 * result + field.hashCode(); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = config.hashCode(); int infoHashcode = info.get() != null ? info.get().hashCode() : 0; result = 31 * result + infoHashcode; return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = getConfig().hashCode(); long id = nextTaskId.get(); result = 31 * result + (int) (id ^ (id >>> 32)); result = 31 * result + tasks.hashCode(); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = config.hashCode(); final int n = Double.valueOf(number.get()).hashCode(); result = 31 * result + n; return result; }
@Override public int hashCode() { int result = config.hashCode(); result = 31 * result + unit.hashCode(); return result; } }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = getConfig().hashCode(); final long n = Double.doubleToLongBits(getValue().doubleValue()); result = 31 * result + (int) (n ^ (n >>> 32)); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = getConfig().hashCode(); result = 31 * result + getValue(0).hashCode(); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = getConfig().hashCode(); result = 31 * result + getValue(0).hashCode(); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = getConfig().hashCode(); result = 31 * result + getValue(0).hashCode(); return result; }
@Test public void testHashCode() throws Exception { MonitorConfig m1 = new MonitorConfig.Builder("a").withTags(tags1).build(); MonitorConfig m2 = new MonitorConfig.Builder("a").withTags(tags2).build(); MonitorConfig m3 = new MonitorConfig.Builder("a").withTags(tags1).build(); assertTrue(m1.hashCode() == m1.hashCode()); assertTrue(m1.hashCode() != m2.hashCode()); assertTrue(m1.hashCode() == m3.hashCode()); }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = config.hashCode(); result = 31 * result + totalAmount.hashCode(); result = 31 * result + count.hashCode(); result = 31 * result + max.hashCode(); result = 31 * result + min.hashCode(); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = config.hashCode(); result = 31 * result + totalTime.hashCode(); result = 31 * result + count.hashCode(); result = 31 * result + totalOfSquares.hashCode(); result = 31 * result + max.hashCode(); return result; }