List of usage examples for org.apache.commons.lang ObjectUtils hashCode
public static int hashCode(Object obj)
Gets the hash code of an object returning zero when the object is null
.
ObjectUtils.hashCode(null) = 0 ObjectUtils.hashCode(obj) = obj.hashCode()
From source file:com.opengamma.financial.comparison.TradeInfo.java
@Override public int hashCode() { int hc = hashCodeImpl(); hc += (hc << 4) + ObjectUtils.hashCode(getCounterparty()); hc += (hc << 4) + ObjectUtils.hashCode(getTradeDate()); hc += (hc << 4) + ObjectUtils.hashCode(getTradeTime()); hc += (hc << 4) + ObjectUtils.hashCode(getPremium()); hc += (hc << 4) + ObjectUtils.hashCode(getPremiumCurrency()); hc += (hc << 4) + ObjectUtils.hashCode(getPremiumDate()); hc += (hc << 4) + ObjectUtils.hashCode(getPremiumTime()); hc += (hc << 4) + ObjectUtils.hashCode(getAttributes()); return hc;/*w w w . ja va2 s . c o m*/ }
From source file:com.vmware.identity.idm.IdentityStoreObjectMapping.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ObjectUtils.hashCode(_objectId); result = prime * result + ObjectUtils.hashCode(_objectClass); result = prime * result + ObjectUtils.hashCode(_storeAttributes); return result; }
From source file:com.opengamma.core.marketdatasnapshot.ValueSnapshot.java
/** * Returns a suitable hash code.//from w ww. jav a2s. com * * @return the hash code */ @Override public int hashCode() { return ObjectUtils.hashCode(getMarketValue()) ^ ObjectUtils.hashCode(getOverrideValue()); }
From source file:be.fedict.eid.pkira.blm.model.ca.CertificateChainCertificate.java
@Override public int hashCode() { return ObjectUtils.hashCode(issuer) + ObjectUtils.hashCode(serialNumber); }
From source file:de.fu_berlin.inf.dpp.activities.TextEditActivity.java
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + offset;/*from w ww. j ava2 s.c om*/ result = prime * result + ObjectUtils.hashCode(replacedText); result = prime * result + ObjectUtils.hashCode(text); return result; }
From source file:com.opengamma.engine.function.blacklist.FunctionBlacklistRule.java
@Override public int hashCode() { int hc = 1;/*from w ww . ja v a 2 s. c o m*/ hc += hc * 16 + ObjectUtils.hashCode(_functionIdentifier); hc += hc * 16 + ObjectUtils.hashCode(_functionParameters); hc += hc * 16 + ObjectUtils.hashCode(_target); hc += hc * 16 + ObjectUtils.hashCode(_inputs); hc += hc * 16 + (_inputsExactMatch ? 1 : 0); hc += hc * 16 + ObjectUtils.hashCode(_outputs); hc += hc * 16 + (_outputsExactMatch ? 1 : 0); return hc; }
From source file:net.sourceforge.jukebox.model.Settings.java
@Override public final int hashCode() { return ObjectUtils.hashCode(this.contentFolder) + ObjectUtils.hashCode(this.playerUrl) + ObjectUtils.hashCode(this.modifiedDays); }
From source file:net.sourceforge.jukebox.model.Profile.java
@Override public final int hashCode() { return ObjectUtils.hashCode(this.oldPassword) + ObjectUtils.hashCode(this.newPassword) + ObjectUtils.hashCode(this.confirmPassword) + ObjectUtils.hashCode(this.userInfo); }
From source file:fr.paris.lutece.portal.service.dashboard.DashboardComponent.java
/** * * {@inheritDoc} */ @Override public int hashCode() { return ObjectUtils.hashCode(this.getName()); }
From source file:com.vaadin.addon.jpacontainer.demo.domain.Invoice.java
@Override public int hashCode() { int hash = 7; hash = hash * 31 + ObjectUtils.hashCode(invoiceNo); hash = hash * 31 + DateUtils.sameDayHashCode(invoiceDate); hash = hash * 31 + ObjectUtils.hashCode(order); hash = hash * 31 + DateUtils.sameDayHashCode(dueDate); hash = hash * 31 + DateUtils.sameDayHashCode(paidDate); hash = hash * 31 + ObjectUtils.hashCode(items); return hash;/*from w ww. ja v a2 s . c om*/ }