List of usage examples for java.util Arrays hashCode
public static int hashCode(Object a[])
From source file:com.github.jobs.bean.AboutMeUser.java
@Override public int hashCode() { int result = firstName != null ? firstName.hashCode() : 0; result = 31 * result + (lastName != null ? lastName.hashCode() : 0); result = 31 * result + (header != null ? header.hashCode() : 0); result = 31 * result + (profile != null ? profile.hashCode() : 0); result = 31 * result + (bio != null ? bio.hashCode() : 0); result = 31 * result + (services != null ? Arrays.hashCode(services) : 0); return result; }
From source file:com.opengamma.analytics.financial.interestrate.swaption.derivative.SwaptionBermudaFixedIbor.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(_expiryTime); result = prime * result + (_isLong ? 1231 : 1237); result = prime * result + Arrays.hashCode(_settlementTime); result = prime * result + Arrays.hashCode(_underlyingSwap); return result; }
From source file:com.opengamma.analytics.math.interpolation.data.RadialBasisFunctionInterpolatorDataBundle.java
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + _basisFunction.hashCode(); result = prime * result + _decomp.hashCode(); result = prime * result + _decompRes.hashCode(); result = prime * result + (_useNormalized ? 1231 : 1237); result = prime * result + Arrays.hashCode(_weights); return result; }
From source file:com.opengamma.analytics.math.linearalgebra.TridiagonalMatrix.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(_a); result = prime * result + Arrays.hashCode(_b); result = prime * result + Arrays.hashCode(_c); return result; }
From source file:edu.stanford.muse.datacache.Blob.java
public int hashCode() { if (size == -1) log.warn("Hashcode called on blob without size being set first"); int filenameHash = (filename != null) ? filename.hashCode() : 0; return filenameHash ^ Arrays.hashCode(contentHash); }
From source file:org.edgexfoundry.domain.meta.DeviceProfile.java
@Override public int hashCode() { return new HashCodeBuilder().appendSuper(super.hashCode()).append(commands).append(Arrays.hashCode(labels)) .append(manufacturer).append(model).append(name).append(objects).append(resources).toHashCode(); }
From source file:com.adeptj.modules.security.core.credential.UsernamePasswordCredential.java
@Override public int hashCode() { int result = Objects.hash(this.username); result = 31 * result + Arrays.hashCode(this.password); return result; }
From source file:com.vmware.identity.saml.PrincipalAttribute.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + attributeDefinition.hashCode(); result = prime * result + ((values == null) ? 0 : Arrays.hashCode(values)); return result; }
From source file:org.apache.stratos.cloud.controller.domain.IaasProvider.java
@Override public int hashCode() { int result = type != null ? type.hashCode() : 0; result = 31 * result + (className != null ? className.hashCode() : 0); result = 31 * result + (name != null ? name.hashCode() : 0); result = 31 * result + (properties != null ? properties.hashCode() : 0); result = 31 * result + (networkInterfaces != null ? Arrays.hashCode(networkInterfaces) : 0); result = 31 * result + (image != null ? image.hashCode() : 0); result = 31 * result + (provider != null ? provider.hashCode() : 0); result = 31 * result + (identity != null ? identity.hashCode() : 0); result = 31 * result + (credential != null ? credential.hashCode() : 0); return result; }
From source file:org.terasoluna.gfw.common.message.ResultMessage.java
/** * returns the hash code/*from w w w . j a v a 2 s . c om*/ * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(args); result = prime * result + ((code == null) ? 0 : code.hashCode()); result = prime * result + ((text == null) ? 0 : text.hashCode()); return result; }