@Override public int hashCode() { int h = value != null ? value.hashCode() : 0; h = h * 31 + (int)((time >>> 31) ^ time); h = h * 31 + unit.hashCode(); return h; }
@Override public int hashCode() { return (31 * (int) (count ^ (count >>> 32))) + unit.hashCode(); }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = (int) (value ^ (value >>> 32)); result = 31 * result + (unit != null ? unit.hashCode() : 0); return result; }
@Override public int hashCode() { int result = timeUnit.hashCode(); result = 31 * result + offset; return result; }
@Override public int hashCode() { int h = value != null ? value.hashCode() : 0; h = h * 31 + (int)((time >>> 31) ^ time); h = h * 31 + unit.hashCode(); return h; }
@Override public int hashCode() { int result = (int) (duration ^ (duration >>> 32)); result = 31 * result + (timeUnit != null ? timeUnit.hashCode() : 0); return result; } }
/** * {@inheritDoc} */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (int) (length ^ (length >>> 32)); if (length != 0) { result = prime * result + ((timeUnit == null) ? 0 : timeUnit.hashCode()); } else { // Differentiate zero from forever result = prime * result + ((timeUnit == null) ? 0 : 1); } return result; }
@Override public int hashCode() { return s.hashCode(); }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = timeUnit.hashCode(); result = 31 * result + Arrays.hashCode(buckets); return result; } }
@Override public int hashCode() { int result = observerId; result = 31 * result + packageNames.hashCode(); result = 31 * result + (int) (timeLimit ^ (timeLimit >>> 32)); result = 31 * result + timeUnit.hashCode(); result = 31 * result + callbackIntent.hashCode(); return result; } }
@Override public int hashCode() { int result = eventLoopPoolSize; result = 31 * result + workerPoolSize; result = 31 * result + internalBlockingPoolSize; result = 31 * result + (int) (blockedThreadCheckInterval ^ (blockedThreadCheckInterval >>> 32)); result = 31 * result + (int) (maxEventLoopExecuteTime ^ (maxEventLoopExecuteTime >>> 32)); result = 31 * result + (int) (maxWorkerExecuteTime ^ (maxWorkerExecuteTime >>> 32)); result = 31 * result + (clusterManager != null ? clusterManager.hashCode() : 0); result = 31 * result + (haEnabled ? 1 : 0); result = 31 * result + (preferNativeTransport ? 1 : 0); result = 31 * result + quorumSize; result = 31 * result + (haGroup != null ? haGroup.hashCode() : 0); result = 31 * result + (metricsOptions != null ? metricsOptions.hashCode() : 0); result = 31 * result + (fileSystemOptions != null ? fileSystemOptions.hashCode() : 0); result = 31 * result + (eventBusOptions != null ? eventBusOptions.hashCode() : 0); result = 31 * result + (addressResolverOptions != null ? addressResolverOptions.hashCode() : 0); result = 31 * result + (int) (warningExceptionTime ^ (warningExceptionTime >>> 32)); result = 31 * result + (maxEventLoopExecuteTimeUnit != null ? maxEventLoopExecuteTimeUnit.hashCode() : 0); result = 31 * result + (maxWorkerExecuteTimeUnit != null ? maxWorkerExecuteTimeUnit.hashCode() : 0); result = 31 * result + (warningExceptionTimeUnit != null ? warningExceptionTimeUnit.hashCode() : 0); result = 31 * result + (blockedThreadCheckIntervalUnit != null ? blockedThreadCheckIntervalUnit.hashCode() : 0); return result; }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (tcpNoDelay ? 1 : 0); result = 31 * result + (tcpFastOpen ? 1 : 0); result = 31 * result + (tcpCork ? 1 : 0); result = 31 * result + (tcpQuickAck ? 1 : 0); result = 31 * result + (tcpKeepAlive ? 1 : 0); result = 31 * result + soLinger; result = 31 * result + (usePooledBuffers ? 1 : 0); result = 31 * result + idleTimeout; result = 31 * result + (idleTimeoutUnit != null ? idleTimeoutUnit.hashCode() : 0); result = 31 * result + (ssl ? 1 : 0); result = 31 * result + (keyCertOptions != null ? keyCertOptions.hashCode() : 0); result = 31 * result + (trustOptions != null ? trustOptions.hashCode() : 0); result = 31 * result + (enabledCipherSuites != null ? enabledCipherSuites.hashCode() : 0); result = 31 * result + (crlPaths != null ? crlPaths.hashCode() : 0); result = 31 * result + (crlValues != null ? crlValues.hashCode() : 0); result = 31 * result + (useAlpn ? 1 : 0); result = 31 * result + (sslEngineOptions != null ? sslEngineOptions.hashCode() : 0); result = 31 * result + (enabledSecureTransportProtocols != null ? enabledSecureTransportProtocols .hashCode() : 0); return result; } }
@Override public int hashCode() { int result = config.hashCode(); result = 31 * result + unit.hashCode(); return result; } }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = super.hashCode(); result = 31 * result + timeUnit.hashCode(); return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = config.hashCode(); result = 31 * result + timeUnit.hashCode(); result = 31 * result + totalTime.hashCode(); result = 31 * result + Arrays.hashCode(bucketCount); result = 31 * result + overflowCount.hashCode(); result = 31 * result + min.hashCode(); result = 31 * result + max.hashCode(); result = 31 * result + bucketConfig.hashCode(); return result; }
@Test public void hashCodeOf() { Timed<Integer> t1 = new Timed<Integer>(1, 5, TimeUnit.SECONDS); assertEquals(TimeUnit.SECONDS.hashCode() + 31 * (5 + 31 * 1), t1.hashCode()); Timed<Integer> t2 = new Timed<Integer>(null, 5, TimeUnit.SECONDS); assertEquals(TimeUnit.SECONDS.hashCode() + 31 * (5 + 31 * 0), t2.hashCode()); }
/** * hashCode. * * @return hash code */ @Override public int hashCode() { int result = (int) (duration ^ (duration >>> 32)); result = 31 * result + (timeUnit != null ? timeUnit.hashCode() : 0); return result; }
@Override public int hashCode() { int result = timeUnit.hashCode(); result = 31 * result + offset; return result; }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = (int) (value ^ (value >>> 32)); result = 31 * result + (unit != null ? unit.hashCode() : 0); return result; }
@Override public int hashCode() { int result = (int) (duration ^ (duration >>> 32)); result = 31 * result + (timeUnit != null ? timeUnit.hashCode() : 0); return result; } }