List of usage examples for java.util Arrays hashCode
public static int hashCode(Object a[])
From source file:org.xwiki.crypto.pkix.internal.BcX509CertifiedPublicKey.java
/** * {@inheritDoc}// w ww. jav a 2 s . co m * * @since 6.0M1 */ @Override public int hashCode() { X509Extensions exts = this.getExtensions(); if (exts != null) { byte[] id = exts.getSubjectKeyIdentifier(); if (id != null) { return Arrays.hashCode(id); } } return new HashCodeBuilder(3, 17).append(getIssuer()).append(getSerialNumber()).toHashCode(); }
From source file:net.greghaines.jesque.Job.java
/** * {@inheritDoc}/* w ww . java 2 s . c om*/ */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((this.className == null) ? 0 : this.className.hashCode()); result = prime * result + Arrays.hashCode(this.args); result = prime * result + ((this.vars == null) ? 0 : this.vars.hashCode()); return result; }
From source file:net.pmarks.chromadoze.PhononMutable.java
private void cleanMe() { int h = Arrays.hashCode(mBars); h = 31 * h + mMinVol; h = 31 * h + mPeriod; mHash = h; mDirty = false; }
From source file:com.opengamma.analytics.financial.interestrate.payments.derivative.CouponIborCompoundingFlatSpread.java
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); long temp;/*w w w.ja v a 2 s . c om*/ temp = Double.doubleToLongBits(_compoundingPeriodAmountAccumulated); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + Arrays.hashCode(_fixingSubperiodsAccrualFactors); result = prime * result + Arrays.hashCode(_fixingSubperiodsEndTimes); result = prime * result + Arrays.hashCode(_fixingSubperiodsStartTimes); result = prime * result + Arrays.hashCode(_fixingTimes); result = prime * result + ((_index == null) ? 0 : _index.hashCode()); temp = Double.doubleToLongBits(_spread); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + Arrays.hashCode(_subperiodsAccrualFactors); return result; }
From source file:org.jasig.portlet.courses.dao.xml.SecureRequestCredentials.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(getPassword()); result = prime * result + ((username == null) ? 0 : username.hashCode()); return result; }
From source file:org.cloudfoundry.identity.uaa.authentication.RubyUserTokenTests.java
@Override public int hashCode() { return signature != null ? Arrays.hashCode(signature) : 0; }
From source file:com.opengamma.analytics.financial.interestrate.payments.derivative.CouponIborCompoundingSpread.java
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + Arrays.hashCode(_fixingPeriodAccrualFactors); result = prime * result + Arrays.hashCode(_fixingPeriodEndTimes); result = prime * result + Arrays.hashCode(_fixingPeriodStartTimes); result = prime * result + Arrays.hashCode(_fixingTimes); result = prime * result + _index.hashCode(); long temp;/*from ww w .j a v a 2 s. c o m*/ temp = Double.doubleToLongBits(_notionalAccrued); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + Arrays.hashCode(_paymentAccrualFactors); temp = Double.doubleToLongBits(_spread); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:biz.netcentric.cq.tools.actool.configmodel.AceBean.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = (prime * result) + Arrays.hashCode(actions); result = (prime * result) + ((actionsStringFromConfig == null) ? 0 : actionsStringFromConfig.hashCode()); result = (prime * result) + ((assertedExceptionString == null) ? 0 : assertedExceptionString.hashCode()); result = (prime * result) + ((initialContent == null) ? 0 : initialContent.hashCode()); result = (prime * result) + ((jcrPath == null) ? 0 : jcrPath.hashCode()); result = (prime * result) + ((permission == null) ? 0 : permission.hashCode()); result = (prime * result) + ((principal == null) ? 0 : principal.hashCode()); result = (prime * result) + ((privilegesString == null) ? 0 : privilegesString.hashCode()); result = (prime * result) + ((restrictions == null) ? 0 : restrictions.hashCode()); return result; }
From source file:com.pinterest.secor.common.LogFilePath.java
@Override public int hashCode() { int result = mPrefix != null ? mPrefix.hashCode() : 0; result = 31 * result + (mTopic != null ? mTopic.hashCode() : 0); result = 31 * result + (mPartitions != null ? Arrays.hashCode(mPartitions) : 0); result = 31 * result + mGeneration;/*from w ww.j ava 2 s .c o m*/ result = 31 * result + mKafkaPartition; result = 31 * result + (int) (mOffset ^ (mOffset >>> 32)); return result; }
From source file:pt.webdetails.cda.cache.TableCacheKey.java
@Override public int hashCode() { int result = connectionHash; result = 31 * result + (query != null ? query.hashCode() : 0); result = 31 * result + (queryType != null ? queryType.hashCode() : 0); result = 31 * result + (parameters != null ? Arrays.hashCode(parameters) : 0); result = 31 * result + (extraCacheKey != null ? extraCacheKey.hashCode() : 0); return result; }