List of usage examples for org.springframework.util ObjectUtils nullSafeHashCode
public static int nullSafeHashCode(@Nullable short[] array)
From source file:example.app.model.Person.java
@Override public int hashCode() { int hashValue = 17; hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(getBirthDate()); hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(getFirstName()); hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(getLastName()); return hashValue; }
From source file:com.springsource.hq.plugin.tcserver.serverconfig.configuration.jvm.JvmOptions.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.advanced) * 29 + ObjectUtils.nullSafeHashCode(this.debug) * 29 + ObjectUtils.nullSafeHashCode(this.garbageCollection) * 29 + ObjectUtils.nullSafeHashCode(this.general) * 29 + ObjectUtils.nullSafeHashCode(this.memory) * 29; }
From source file:com.springsource.hq.plugin.tcserver.serverconfig.services.Service.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.connectors) * 29 + ObjectUtils.nullSafeHashCode(this.engine) * 29 + ObjectUtils.nullSafeHashCode(this.name) * 29; }
From source file:cat.albirar.framework.dynabean.impl.models.test.ModelImpl.java
/** * {@inheritDoc}/*from ww w. j av a2 s.c om*/ */ @Override public int hashCode() { return ObjectUtils.nullSafeHashCode(new Object[] { id, name, lastName, gender, birthDate, numberOfChildren, incomingYear, names, taxesYear, byteProp, charProp, shortProp, booleanProp }); }
From source file:com.springsource.hq.plugin.tcserver.serverconfig.configuration.Configuration.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.contextContainer) * 29 + ObjectUtils.nullSafeHashCode(this.generalConfig) * 29 + ObjectUtils.nullSafeHashCode(this.environment) * 29 + ObjectUtils.nullSafeHashCode(this.serverDefaults) * 29; }
From source file:com.springsource.hq.plugin.tcserver.serverconfig.configuration.jvm.Memory.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.maxNewSize) * 29 + ObjectUtils.nullSafeHashCode(this.maxPermSize) * 29 + ObjectUtils.nullSafeHashCode(this.ms) * 29 + ObjectUtils.nullSafeHashCode(this.mx) * 29 + ObjectUtils.nullSafeHashCode(this.newSize) * 29 + ObjectUtils.nullSafeHashCode(this.permSize) * 29 + ObjectUtils.nullSafeHashCode(this.ss) * 29; }
From source file:com.springsource.hq.plugin.tcserver.serverconfig.configuration.serverdefaults.StaticDefaults.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.debug) * 29 + ObjectUtils.nullSafeHashCode(this.fileEncoding) * 29 + ObjectUtils.nullSafeHashCode(this.input) * 29 + ObjectUtils.nullSafeHashCode(this.listings) * 29 + ObjectUtils.nullSafeHashCode(this.output) * 29 + ObjectUtils.nullSafeHashCode(this.readmeFile) * 29 + ObjectUtils.nullSafeHashCode(this.readonly) * 29 + ObjectUtils.nullSafeHashCode(this.sendfileSize) * 29; }
From source file:com.springsource.hq.plugin.tcserver.serverconfig.services.engine.Engine.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.defaultHost) * 29 + ObjectUtils.nullSafeHashCode(this.hosts) * 29 + ObjectUtils.nullSafeHashCode(this.jvmRoute) * 29 + ObjectUtils.nullSafeHashCode(this.logging) * 29 + ObjectUtils.nullSafeHashCode(this.name) * 29 + ObjectUtils.nullSafeHashCode(this.name) * 29 + ObjectUtils.nullSafeHashCode(this.threadDiagnostics) * 29; }
From source file:example.app.model.Contact.java
@Override public int hashCode() { int hashValue = 17; hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(this.getPerson()); hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(this.getAddress()); hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(this.getEmail()); hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(this.getPhoneNumber()); return hashValue; }
From source file:com.springsource.hq.plugin.tcserver.serverconfig.resources.jdbc.Connection.java
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.connectionProperties) * 29 + ObjectUtils.nullSafeHashCode(this.driverClassName) * 29 + ObjectUtils.nullSafeHashCode(this.password) * 29 + ObjectUtils.nullSafeHashCode(this.url) * 29 + ObjectUtils.nullSafeHashCode(this.username) * 29; }