List of usage examples for java.util Objects hashCode
public static int hashCode(Object o)
From source file:com.netflix.subtitles.ttml.TtmlTimeConverter.java
@Override public int hashCode() { int hash = 7; hash = 89 * hash + this.frameRate; hash = 89 * hash + this.frNumerator; hash = 89 * hash + this.frDenominator; hash = 89 * hash + Objects.hashCode(this.dropMode); hash = 89 * hash + this.tickRate; hash = 89 * hash + this.subFrameRate; return hash;// w ww . j a va2 s . c o m }
From source file:net.bluemix.connectors.core.info.IBMObjectStorageServiceInfo.java
@Override public int hashCode() { int hash = 5; hash = 59 * hash + Objects.hashCode(this.id); hash = 59 * hash + Objects.hashCode(this.authUrl); hash = 59 * hash + Objects.hashCode(this.domainId); hash = 59 * hash + Objects.hashCode(this.domainName); hash = 59 * hash + Objects.hashCode(this.password); hash = 59 * hash + Objects.hashCode(this.project); hash = 59 * hash + Objects.hashCode(this.projectId); hash = 59 * hash + Objects.hashCode(this.region); hash = 59 * hash + Objects.hashCode(this.userId); hash = 59 * hash + Objects.hashCode(this.username); return hash;/*from w w w. j a va2s . c om*/ }
From source file:io.github.proxyprint.kitchen.models.printshops.RegisterRequest.java
@Override public int hashCode() { int hash = 5; hash = 67 * hash + (int) (this.id ^ (this.id >>> 32)); hash = 67 * hash + Objects.hashCode(this.managerName); hash = 67 * hash + Objects.hashCode(this.managerUsername); hash = 67 * hash + Objects.hashCode(this.managerEmail); hash = 67 * hash + Objects.hashCode(this.managerPassword); hash = 67 * hash + Objects.hashCode(this.pShopAddress); hash = 67 * hash + Objects.hashCode(this.pShopLatitude); hash = 67 * hash + Objects.hashCode(this.pShopLongitude); hash = 67 * hash + Objects.hashCode(this.pShopNIF); hash = 67 * hash + Objects.hashCode(this.pShopName); hash = 67 * hash + (this.accepted ? 1 : 0); hash = 67 * hash + Objects.hashCode(this.pShopDateRequest); hash = 67 * hash + Objects.hashCode(this.pShopDateRequestAccepted); return hash;/*w w w . ja va 2 s . c o m*/ }
From source file:business.Klant.java
@Override public int hashCode() { int hash = 7; //hash = 89 hash + (this.name != null ? this.name.hashCode() : 0); hash = 67 * hash + (int) (this.id ^ (this.id >>> 32)); hash = 67 * hash + Objects.hashCode(this.voornaam); hash = 67 * hash + Objects.hashCode(this.tussenvoegsel); hash = 67 * hash + Objects.hashCode(this.achternaam); hash = 67 * hash + Objects.hashCode(this.email); // hash = 67 * hash + Objects.hashCode(this.accountSet); // hash = 67 * hash + Objects.hashCode(this.bestellingSet); // hash = 67 * hash + Objects.hashCode(this.factuurSet); return hash;/* ww w .j a va 2s. com*/ }
From source file:org.tightblog.domain.WeblogEntryComment.java
@Override public int hashCode() { if (hashCode == 0) { hashCode = Objects.hashCode(id); } return hashCode; }
From source file:org.apache.sshd.common.util.net.SshdSocketAddress.java
@Override public int hashCode() { return Objects.hashCode(getHostName()) + getPort(); }
From source file:things.thing.Thing.java
@Override public int hashCode() { if (getId() == null) { return Objects.hash(getValue(), getThingType()); }//ww w .j a v a 2 s .co m return Objects.hashCode(getId()); }
From source file:wsattacker.sso.openid.attacker.attack.parameter.AttackParameter.java
@Override public int hashCode() { int hash = 7; hash = 43 * hash + (this.inValidSignature ? 1 : 0); hash = 43 * hash + (this.inAttackSignature ? 1 : 0); hash = 43 * hash + Objects.hashCode(this.name); hash = 43 * hash + Objects.hashCode(this.validValue); hash = 43 * hash + Objects.hashCode(this.attackValue); hash = 43 * hash + Objects.hashCode(this.validMethod); hash = 43 * hash + Objects.hashCode(this.attackMethod); return hash;/*from ww w . jav a2s . c om*/ }
From source file:org.obiba.mica.core.domain.Person.java
@Override public int hashCode() { if (getId() != null) return Objects.hashCode(getId()); if (!Strings.isNullOrEmpty(getEmail())) return Objects.hashCode(getEmail()); return super.hashCode(); }
From source file:org.lenskit.data.store.PackedEntityCollection.java
@Override public void describeTo(DescriptionWriter writer) { writer.putField("entity_count", size); writer.putList("attributes", attributes); if (contentHash == null) { Hasher hash = Hashing.md5().newHasher(); for (int i = 0; i < size; i++) { hash.putLong(idStore.getLong(i)); for (int j = 1; j < attributes.size(); j++) { hash.putInt(Objects.hashCode(attrStores[j].get(i))); }/*from www .j av a2 s . co m*/ } contentHash = hash.hash(); } writer.putField("content_hash", contentHash); }