List of usage examples for java.util Arrays hashCode
public static int hashCode(Object a[])
From source file:org.apache.hadoop.hbase.regionserver.idx.support.arrays.$.java
/** * {@inheritDoc} */ @Override public int hashCode() { return 31 * Arrays.hashCode(values) + size; }
From source file:org.apache.shindig.gadgets.http.HttpRequest.java
@Override public int hashCode() { return method.hashCode() ^ uri.hashCode() ^ authType.hashCode() ^ Arrays.hashCode(postBody) ^ headers.hashCode(); }
From source file:org.protempa.dest.table.Link.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((comparator == null) ? 0 : comparator.hashCode()); result = prime * result + Arrays.hashCode(constraints); result = prime * result + fromIndex; result = prime * result + ((propIdsAsSet == null) ? 0 : propIdsAsSet.hashCode()); result = prime * result + toIndex;/*from ww w .ja va 2s . c o m*/ return result; }
From source file:com.opengamma.maths.lowlevelapi.datatypes.primitive.PackedMatrix.java
/** * {@inheritDoc}/* w ww .j a va2 s . c o m*/ */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(_colCount); result = prime * result + _cols; result = prime * result + Arrays.hashCode(_data); result = prime * result + _els; result = prime * result + Arrays.hashCode(_rowPtr); result = prime * result + _rows; return result; }
From source file:com.rockhoppertech.music.scale.Scale.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((aliases == null) ? 0 : aliases.hashCode()); result = prime * result + Arrays.hashCode(degrees); result = prime * result + (descendingDifferent ? 1231 : 1237); result = prime * result + Arrays.hashCode(descendingIntervals); result = prime * result + ((description == null) ? 0 : description.hashCode()); result = prime * result + Arrays.hashCode(intervals); result = prime * result + ((key == null) ? 0 : key.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + octave;//from w w w . ja v a2 s . c om result = prime * result + ((spelling == null) ? 0 : spelling.hashCode()); return result; }
From source file:com.opengamma.analytics.financial.model.volatility.surface.SmileDeltaTermStructureParameters.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(_timeToExpiration); result = prime * result + Arrays.hashCode(_volatilityTerm); result = prime * result + _timeInterpolator.hashCode(); return result; }
From source file:by.stub.yaml.stubs.StubRequest.java
@Override @CoberturaIgnore//from w ww . j ava2 s. c o m public int hashCode() { int result = (ObjectUtils.isNotNull(url) ? url.hashCode() : 0); result = 31 * result + method.hashCode(); result = 31 * result + (ObjectUtils.isNotNull(post) ? post.hashCode() : 0); result = 31 * result + (ObjectUtils.isNotNull(fileBytes) && fileBytes.length != 0 ? Arrays.hashCode(fileBytes) : 0); result = 31 * result + headers.hashCode(); result = 31 * result + query.hashCode(); return result; }
From source file:msi.gama.common.geometry.GamaCoordinateSequence.java
@Override public int hashCode() { return Arrays.hashCode(points); }
From source file:org.springframework.test.context.ContextConfigurationAttributes.java
/** * Generate a unique hash code for all properties of this * {@code ContextConfigurationAttributes} instance excluding the * {@linkplain #getName() name}./*ww w.j a va 2 s. c om*/ */ @Override public int hashCode() { int result = this.declaringClass.hashCode(); result = 31 * result + Arrays.hashCode(this.classes); result = 31 * result + Arrays.hashCode(this.locations); result = 31 * result + Arrays.hashCode(this.initializers); return result; }
From source file:com.opengamma.financial.analytics.LabelledMatrix1D.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(_keys); result = prime * result + Arrays.hashCode(_labels); result = prime * result + ((_labelsTitle == null) ? 0 : _labelsTitle.hashCode()); result = prime * result + Arrays.hashCode(_values); result = prime * result + ((_valuesTitle == null) ? 0 : _valuesTitle.hashCode()); return result; }