List of usage examples for java.util Arrays hashCode
public static int hashCode(Object a[])
From source file:com.opengamma.analytics.financial.interestrate.inflation.derivative.CouponInflationZeroCouponInterpolationGearing.java
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); long temp;// www . j a v a 2s. c o m temp = Double.doubleToLongBits(_factor); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_fixingEndTime); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_indexStartValue); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + (_payNotional ? 1231 : 1237); result = prime * result + Arrays.hashCode(_referenceEndTime); temp = Double.doubleToLongBits(_weight); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:org.jasig.portal.portlet.container.cache.CachedPortletData.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(byteData); result = prime * result + ((contentType == null) ? 0 : contentType.hashCode()); result = prime * result + ((etag == null) ? 0 : etag.hashCode()); result = prime * result + expirationTimeSeconds; result = prime * result + ((headers == null) ? 0 : headers.hashCode()); result = prime * result + ((stringData == null) ? 0 : stringData.hashCode()); result = prime * result + ((timeStored == null) ? 0 : timeStored.hashCode()); return result; }
From source file:org.cytoscape.MetScape.data.CompoundData.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 + ((data == null) ? 0 : data.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((nameOrId == null) ? 0 : nameOrId.hashCode()); return result; }
From source file:org.apache.any23.extractor.microdata.ItemScope.java
@Override public int hashCode() { int i = properties == null ? 0 : properties.hashCode(); i += id == null ? 0 : id.hashCode(); i += refs == null ? 0 : Arrays.hashCode(refs); i += type == null ? 0 : type.hashCode(); i += itemId == null ? 0 : itemId.hashCode(); return i;/*from w w w . j a v a2 s. c o m*/ }
From source file:org.protempa.query.Query.java
@Override public int hashCode() { final int prime = 31; int result = prime + (this.filters != null ? this.filters.hashCode() : 0); result = prime * result + Arrays.hashCode(this.keyIds); result = prime * result + Arrays.hashCode(this.propIds); result = prime * result + Arrays.hashCode(this.termIds); result = prime * result + Arrays.hashCode(this.propDefs); result = prime * result + this.queryMode.hashCode(); result = prime * result + (this.username != null ? this.username.hashCode() : 0); return result; }
From source file:twitter4j.internal.json.TrendsJSONImpl.java
@Override public int hashCode() { int result = asOf != null ? asOf.hashCode() : 0; result = 31 * result + (trendAt != null ? trendAt.hashCode() : 0); result = 31 * result + (trends != null ? Arrays.hashCode(trends) : 0); return result; }
From source file:ffx.potential.parameters.OutOfPlaneBendType.java
/** * {@inheritDoc}//from w w w .j a v a2s .com */ @Override public int hashCode() { int hash = 7; hash = 53 * hash + Arrays.hashCode(atomClasses); return hash; }
From source file:ffx.potential.parameters.StretchBendType.java
/** * {@inheritDoc}//from www .j ava2 s.c om */ @Override public int hashCode() { int hash = 3; hash = 29 * hash + Arrays.hashCode(atomClasses); return hash; }
From source file:com.opengamma.analytics.financial.interestrate.payments.derivative.CouponArithmeticAverageONSpread.java
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + Arrays.hashCode(_fixingPeriodAccrualFactors); long temp;//from w w w . j a v a2 s.c om temp = Double.doubleToLongBits(_fixingPeriodRemainingAccrualFactor); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + Arrays.hashCode(_fixingPeriodTimes); result = prime * result + _index.hashCode(); temp = Double.doubleToLongBits(_rateAccrued); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_spread); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_spreadAmount); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:com.opengamma.analytics.financial.interestrate.payments.derivative.CouponIborCompounded.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 + _forwardCurveName.hashCode(); result = prime * result + _index.hashCode(); long temp;//w ww .j a va2s .c o m temp = Double.doubleToLongBits(_notionalAccrued); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + Arrays.hashCode(_paymentAccrualFactors); return result; }