List of usage examples for org.springframework.util ObjectUtils nullSafeHashCode
public static int nullSafeHashCode(@Nullable short[] array)
From source file:com.springsource.hq.plugin.tcserver.serverconfig.configuration.general.JmxListener.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.accessFile) * 29 + ObjectUtils.nullSafeHashCode(this.authenticate) * 29 + ObjectUtils.nullSafeHashCode(this.bind) * 29 + ObjectUtils.nullSafeHashCode(this.cipherSuites) * 29 + ObjectUtils.nullSafeHashCode(this.clientAuth) * 29 + ObjectUtils.nullSafeHashCode(this.keystoreFile) * 29 + ObjectUtils.nullSafeHashCode(this.keystorePass) * 29 + ObjectUtils.nullSafeHashCode(this.passwordFile) * 29 + ObjectUtils.nullSafeHashCode(this.port) * 29 + ObjectUtils.nullSafeHashCode(this.protocols) * 29 + ObjectUtils.nullSafeHashCode(this.truststoreFile) * 29 + ObjectUtils.nullSafeHashCode(this.truststorePass) * 29 + ObjectUtils.nullSafeHashCode(this.useJdkClientFactory) * 29 + ObjectUtils.nullSafeHashCode(this.useSSL) * 29; }
From source file:com.opengamma.language.definition.JavaTypeInfo.java
@Override public int hashCode() { int hc = getRawClass().hashCode(); hc += (hc << 4) + (isAllowNull() ? 1 : 0); if (isDefaultValue()) { hc += (hc << 4) + 1;/*from ww w .ja v a2 s . c o m*/ hc += (hc << 4) + ObjectUtils.nullSafeHashCode(getDefaultValue()); } else { hc += (hc << 4); hc += (hc << 4); } return hc; }
From source file:com.springsource.hq.plugin.tcserver.serverconfig.services.engine.Host.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.appBase) * 29 + ObjectUtils.nullSafeHashCode(this.autoDeploy) * 29 + ObjectUtils.nullSafeHashCode(this.deployOnStartup) * 29 + ObjectUtils.nullSafeHashCode(this.deployXML) * 29 + ObjectUtils.nullSafeHashCode(this.logging) * 29 + ObjectUtils.nullSafeHashCode(this.name) * 29 + ObjectUtils.nullSafeHashCode(this.unpackWARs) * 29 + ObjectUtils.nullSafeHashCode(this.workDir) * 29; }
From source file:com.springsource.hq.plugin.tcserver.serverconfig.services.connector.Connector.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.address) * 29 + ObjectUtils.nullSafeHashCode(this.connectionTimeout) * 29 + ObjectUtils.nullSafeHashCode(this.maxThreads) * 29 + ObjectUtils.nullSafeHashCode(this.port) * 29 + ObjectUtils.nullSafeHashCode(this.proxyName) * 29 + ObjectUtils.nullSafeHashCode(this.proxyPort) * 29 + ObjectUtils.nullSafeHashCode(this.redirectPort) * 29 + ObjectUtils.nullSafeHashCode(this.scheme) * 29; }
From source file:com.springsource.hq.plugin.tcserver.serverconfig.resources.jdbc.DbcpConnectionPool.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.accessToUnderlyingConnectionAllowed) * 29 + ObjectUtils.nullSafeHashCode(this.defaultAutoCommit) * 29 + ObjectUtils.nullSafeHashCode(this.defaultCatalog) * 29 + ObjectUtils.nullSafeHashCode(this.defaultReadOnly) * 29 + ObjectUtils.nullSafeHashCode(this.defaultTransactionIsolation) * 29 + ObjectUtils.nullSafeHashCode(this.initialSize) * 29 + ObjectUtils.nullSafeHashCode(this.logAbandoned) * 29 + ObjectUtils.nullSafeHashCode(this.maxActive) * 29 + ObjectUtils.nullSafeHashCode(this.maxIdle) * 29 + ObjectUtils.nullSafeHashCode(this.maxOpenPreparedStatements) * 29 + ObjectUtils.nullSafeHashCode(this.maxWait) * 29 + ObjectUtils.nullSafeHashCode(this.minEvictableIdleTimeMillis) * 29 + ObjectUtils.nullSafeHashCode(this.minIdle) * 29 + ObjectUtils.nullSafeHashCode(this.numTestsPerEvictionRun) * 29 + ObjectUtils.nullSafeHashCode(this.poolPreparedStatements) * 29 + ObjectUtils.nullSafeHashCode(this.removeAbandoned) * 29 + ObjectUtils.nullSafeHashCode(this.removeAbandonedTimeout) * 29 + ObjectUtils.nullSafeHashCode(this.testOnBorrow) * 29 + ObjectUtils.nullSafeHashCode(this.testOnReturn) * 29 + ObjectUtils.nullSafeHashCode(this.testWhileIdle) * 29 + ObjectUtils.nullSafeHashCode(this.timeBetweenEvictionRunsMillis) * 29 + ObjectUtils.nullSafeHashCode(this.validationQuery) * 29; }
From source file:com.springsource.hq.plugin.tcserver.serverconfig.configuration.serverdefaults.JspDefaults.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.checkInterval) * 29 + ObjectUtils.nullSafeHashCode(this.classdebuginfo) * 29 + ObjectUtils.nullSafeHashCode(this.compiler) * 29 + ObjectUtils.nullSafeHashCode(this.compilerSourceVM) * 29 + ObjectUtils.nullSafeHashCode(this.compilerTargetVM) * 29 + ObjectUtils.nullSafeHashCode(this.development) * 29 + ObjectUtils.nullSafeHashCode(this.displaySourceFragment) * 29 + ObjectUtils.nullSafeHashCode(this.dumpSmap) * 29 + ObjectUtils.nullSafeHashCode(this.enablePooling) * 29 + ObjectUtils.nullSafeHashCode(this.engineOptionsClass) * 29 + ObjectUtils.nullSafeHashCode(this.errorOnUseBeanInvalidClassAttribute) * 29 + ObjectUtils.nullSafeHashCode(this.fork) * 29 + ObjectUtils.nullSafeHashCode(this.genStrAsCharArray) * 29 + ObjectUtils.nullSafeHashCode(this.ieClassId) * 29 + ObjectUtils.nullSafeHashCode(this.javaEncoding) * 29 + ObjectUtils.nullSafeHashCode(this.keepgenerated) * 29 + ObjectUtils.nullSafeHashCode(this.mappedfile) * 29 + ObjectUtils.nullSafeHashCode(this.modificationTestInterval) * 29 + ObjectUtils.nullSafeHashCode(this.scratchdir) * 29 + ObjectUtils.nullSafeHashCode(this.suppressSmap) * 29 + ObjectUtils.nullSafeHashCode(this.trimSpaces) * 29 + ObjectUtils.nullSafeHashCode(this.xpoweredBy) * 29; }
From source file:com.springsource.hq.plugin.tcserver.serverconfig.resources.jdbc.TomcatConnectionPool.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.fairQueue) * 29 + ObjectUtils.nullSafeHashCode(this.initSQL) * 29 + ObjectUtils.nullSafeHashCode(this.jdbcInterceptors) * 29 + ObjectUtils.nullSafeHashCode(this.jmxEnabled) * 29 + ObjectUtils.nullSafeHashCode(this.useEquals) * 29 + ObjectUtils.nullSafeHashCode(this.validationInterval) * 29 + ObjectUtils.nullSafeHashCode(this.defaultAutoCommit) * 29 + ObjectUtils.nullSafeHashCode(this.defaultCatalog) * 29 + ObjectUtils.nullSafeHashCode(this.defaultReadOnly) * 29 + ObjectUtils.nullSafeHashCode(this.defaultTransactionIsolation) * 29 + ObjectUtils.nullSafeHashCode(this.initialSize) * 29 + ObjectUtils.nullSafeHashCode(this.logAbandoned) * 29 + ObjectUtils.nullSafeHashCode(this.maxActive) * 29 + ObjectUtils.nullSafeHashCode(this.maxIdle) * 29 + ObjectUtils.nullSafeHashCode(this.maxWait) * 29 + ObjectUtils.nullSafeHashCode(this.minEvictableIdleTimeMillis) * 29 + ObjectUtils.nullSafeHashCode(this.minIdle) * 29 + ObjectUtils.nullSafeHashCode(this.removeAbandoned) * 29 + ObjectUtils.nullSafeHashCode(this.removeAbandonedTimeout) * 29 + ObjectUtils.nullSafeHashCode(this.testOnBorrow) * 29 + ObjectUtils.nullSafeHashCode(this.testOnReturn) * 29 + ObjectUtils.nullSafeHashCode(this.testWhileIdle) * 29 + ObjectUtils.nullSafeHashCode(this.timeBetweenEvictionRunsMillis) * 29 + ObjectUtils.nullSafeHashCode(this.validationQuery) * 29; }
From source file:com.springsource.hq.plugin.tcserver.serverconfig.services.connector.HttpConnector.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.acceptCount) * 29 + ObjectUtils.nullSafeHashCode(this.algorithm) * 29 + ObjectUtils.nullSafeHashCode(this.keyAlias) * 29 + ObjectUtils.nullSafeHashCode(this.keystoreFile) * 29 + ObjectUtils.nullSafeHashCode(this.keystorePass) * 29 + ObjectUtils.nullSafeHashCode(this.maxKeepAliveRequests) * 29 + ObjectUtils.nullSafeHashCode(this.protocol) * 29 + ObjectUtils.nullSafeHashCode(this.secure) * 29 + ObjectUtils.nullSafeHashCode(this.SSLEnabled) * 29 + ObjectUtils.nullSafeHashCode(this.SSLCACertificateFile) * 29 + ObjectUtils.nullSafeHashCode(this.SSLCACertificatePath) * 29 + ObjectUtils.nullSafeHashCode(this.SSLCARevocationFile) * 29 + ObjectUtils.nullSafeHashCode(this.SSLCARevocationPath) * 29 + ObjectUtils.nullSafeHashCode(this.SSLCertificateChainFile) * 29 + ObjectUtils.nullSafeHashCode(this.SSLCertificateFile) * 29 + ObjectUtils.nullSafeHashCode(this.SSLCertificateKeyFile) * 29 + ObjectUtils.nullSafeHashCode(this.SSLCipherSuite) * 29 + ObjectUtils.nullSafeHashCode(this.SSLPassword) * 29 + ObjectUtils.nullSafeHashCode(this.SSLProtocol) * 29 + ObjectUtils.nullSafeHashCode(this.SSLVerifyClient) * 29 + ObjectUtils.nullSafeHashCode(this.SSLVerifyDepth) * 29 + super.hashCode() * 29; }
From source file:cat.albirar.framework.dynabean.impl.DynaBeanImpl.java
/** * Dynamically implemented {@link Object#hashCode()} method. * // ww w. ja v a 2 s . c o m * @return The calculated hashCode * @see ObjectUtils#nullSafeHashCode(Object[]) * @see java.lang.Object#hashCode() */ @Override public int hashCode() { List<Object> vals; vals = new Vector<Object>(); for (Entry<String, Object> e : values.entrySet()) { vals.add(e.getValue()); } return ObjectUtils.nullSafeHashCode(vals.toArray()); }
From source file:net.yasion.common.core.bean.wrapper.GenericTypeAwarePropertyDescriptor.java
@Override public int hashCode() { int hashCode = getBeanClass().hashCode(); hashCode = 29 * hashCode + ObjectUtils.nullSafeHashCode(getReadMethod()); hashCode = 29 * hashCode + ObjectUtils.nullSafeHashCode(getWriteMethod()); return hashCode; }