List of usage examples for java.util Arrays hashCode
public static int hashCode(Object a[])
From source file:com.opengamma.analytics.financial.model.volatility.smile.fitting.sabr.ForexSmileDeltaSurfaceDataBundle.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + _forwardCurve.hashCode(); result = prime * result + Arrays.deepHashCode(_vols); result = prime * result + Arrays.deepHashCode(_strikes); result = prime * result + Arrays.hashCode(_expiries); return result; }
From source file:org.cloudgraph.hbase.io.DistributedGraphReader.java
@Override public void mapRowReader(byte[] rowKey, RowReader rowReader) { int key = Arrays.hashCode(rowKey); RowReader existing = this.rowReaderMap.get(key); if (existing != null) { if (log.isDebugEnabled()) log.debug("the given row key " + rowKey + " is already associated with a row reader - ignoring"); return;//w w w .j a v a2 s . c om } rowReaderMap.put(key, rowReader); }
From source file:org.cytoscape.MetScape.data.CorrelationData.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((columnIsSigned == null) ? 0 : columnIsSigned.hashCode()); result = prime * result + Arrays.hashCode(columns); result = prime * result + ((edgeData == null) ? 0 : edgeData.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((sourceNameOrId == null) ? 0 : sourceNameOrId.hashCode()); result = prime * result + ((targetNameOrId == null) ? 0 : targetNameOrId.hashCode()); return result; }
From source file:com.opengamma.analytics.financial.interestrate.future.derivative.FederalFundsFutureSecurity.java
@Override public int hashCode() { final int prime = 31; int result = 1; long temp;//from ww w .j ava2 s . c om temp = Double.doubleToLongBits(_accruedInterest); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + Arrays.hashCode(_fixingPeriodAccrualFactor); result = prime * result + Arrays.hashCode(_fixingPeriodTime); result = prime * result + _index.hashCode(); result = prime * result + _name.hashCode(); temp = Double.doubleToLongBits(_notional); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_paymentAccrualFactor); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:com.opengamma.engine.calcnode.CalculationJobItem.java
@Override public int hashCode() { final int multiplier = 17; int hc = 1;// w w w . j ava2 s .c o m hc += _functionUniqueIdentifier.hashCode() * multiplier; hc *= multiplier; hc += _computationTargetSpecification.hashCode(); hc *= multiplier; if (_inputSpecifications != null) { hc += Arrays.hashCode(_inputSpecifications); } hc *= multiplier; if (_outputSpecifications != null) { hc += Arrays.hashCode(_outputSpecifications); } hc *= multiplier; return hc; }
From source file:com.flexive.shared.exceptions.FxExceptionMessage.java
@Override public int hashCode() { int result;/* w w w.jav a 2s. c o m*/ result = key.hashCode(); result = 31 * result + (values != null ? Arrays.hashCode(values) : 0); return result; }
From source file:com.cloudmine.api.CMFile.java
@Override public int hashCode() { int hash = 1; hash = hash * 31 + contentType.hashCode(); hash = hash * 31 + fileId.hashCode(); hash = hash * 31 + Arrays.hashCode(fileContents); return hash;//from www .j a v a2 s . c om }
From source file:com.opengamma.financial.analytics.LabelledMatrix2D.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(_values); result = prime * result + ((_valuesTitle == null) ? 0 : _valuesTitle.hashCode()); result = prime * result + Arrays.hashCode(_xKeys); result = prime * result + Arrays.hashCode(_xLabels); result = prime * result + ((_xTitle == null) ? 0 : _xTitle.hashCode()); result = prime * result + Arrays.hashCode(_yKeys); result = prime * result + Arrays.hashCode(_yLabels); result = prime * result + ((_yTitle == null) ? 0 : _yTitle.hashCode()); return result; }
From source file:com.heinrichreimersoftware.materialintro.slide.SimpleSlide.java
@Override public int hashCode() { int result = fragment != null ? fragment.hashCode() : 0; result = 31 * result + ((Long) id).hashCode(); result = 31 * result + (title != null ? title.hashCode() : 0); result = 31 * result + titleRes;/*from w ww . j a va 2 s. c o m*/ result = 31 * result + (description != null ? description.hashCode() : 0); result = 31 * result + descriptionRes; result = 31 * result + imageRes; result = 31 * result + layoutRes; result = 31 * result + backgroundRes; result = 31 * result + backgroundDarkRes; result = 31 * result + (canGoForward ? 1 : 0); result = 31 * result + (canGoBackward ? 1 : 0); result = 31 * result + Arrays.hashCode(permissions); result = 31 * result + permissionsRequestCode; result = 31 * result + (buttonCtaLabel != null ? buttonCtaLabel.hashCode() : 0); result = 31 * result + buttonCtaLabelRes; result = 31 * result + (buttonCtaClickListener != null ? buttonCtaClickListener.hashCode() : 0); return result; }
From source file:com.github.tomakehurst.wiremock.http.ResponseDefinition.java
@Override public int hashCode() { int result = status; result = 31 * result + (body != null ? Arrays.hashCode(body) : 0); result = 31 * result + (isBinaryBody ? 1 : 0); result = 31 * result + (bodyFileName != null ? bodyFileName.hashCode() : 0); result = 31 * result + (headers != null ? headers.hashCode() : 0); result = 31 * result/*from www . j av a2s . co m*/ + (additionalProxyRequestHeaders != null ? additionalProxyRequestHeaders.hashCode() : 0); result = 31 * result + (fixedDelayMilliseconds != null ? fixedDelayMilliseconds.hashCode() : 0); result = 31 * result + (proxyBaseUrl != null ? proxyBaseUrl.hashCode() : 0); result = 31 * result + (browserProxyUrl != null ? browserProxyUrl.hashCode() : 0); result = 31 * result + (fault != null ? fault.hashCode() : 0); result = 31 * result + (wasConfigured ? 1 : 0); result = 31 * result + (originalRequest != null ? originalRequest.hashCode() : 0); result = 31 * result + (transformers != null ? transformers.hashCode() : 0); return result; }