List of usage examples for java.util Objects hashCode
public static int hashCode(Object o)
From source file:com.baziaking.blackjack.domain.model.Transaction.java
@Override public int hashCode() { int hash = 5; hash = 17 * hash + (int) (this.transactionId ^ (this.transactionId >>> 32)); hash = 17 * hash + (int) (this.accountId ^ (this.accountId >>> 32)); hash = 17 * hash + (int) (this.cashTransfered ^ (this.cashTransfered >>> 32)); hash = 17 * hash + Objects.hashCode(this.type); hash = 17 * hash + Objects.hashCode(this.date); hash = 17 * hash + Objects.hashCode(this.account); return hash;/*from w w w . j av a2 s . c o m*/ }
From source file:com.dhenton9000.birt.persistence.entities.OrderDetails.java
@Override public int hashCode() { int hash = 5; hash = 23 * hash + Objects.hashCode(this.pid); return hash; }
From source file:kullervo16.checklist.model.Template.java
@Override public int hashCode() { int hash = 7; hash = 31 * hash + Objects.hashCode(this.displayName); hash = 31 * hash + Objects.hashCode(this.steps); hash = 31 * hash + Objects.hashCode(this.description); hash = 31 * hash + Objects.hashCode(this.tags); hash = 31 * hash + Objects.hashCode(this.milestones); return hash;// w w w. ja v a 2s .com }
From source file:th.co.geniustree.advisor.domain.Appointment.java
@Override public int hashCode() { int hash = 7; hash = 67 * hash + Objects.hashCode(this.id); return hash; }
From source file:com.github.lynxdb.server.core.Vhost.java
@Override public int hashCode() { int hash = 3; hash = 53 * hash + Objects.hashCode(this.vhostId); return hash; }
From source file:de.fraunhofer.iosb.ilt.sta.model.core.AbstractEntity.java
@Override public int hashCode() { int hash = 5; hash = 89 * hash + Objects.hashCode(this.id); hash = 89 * hash + Objects.hashCode(this.selfLink); hash = 89 * hash + Objects.hashCode(this.navigationLink); return hash;// w ww. j a v a 2s . c o m }
From source file:cz.fi.muni.pa165.library.api.dto.MemberDTO.java
@Override public int hashCode() { int hash = 7; hash = 79 * hash + (int) (this.idMember ^ (this.idMember >>> 32)); hash = 79 * hash + Objects.hashCode(this.name); hash = 79 * hash + Objects.hashCode(this.email); hash = 79 * hash + Objects.hashCode(this.address); hash = 79 * hash + Objects.hashCode(this.password); hash = 79 * hash + Objects.hashCode(this.isAdmin); return hash;//from ww w . j a v a 2 s. c om }
From source file:org.jaqpot.algorithms.dto.dataset.FeatureInfo.java
@Override public int hashCode() { int hash = 7; hash = 29 * hash + Objects.hashCode(this.URI); return hash; }
From source file:fr.landel.utils.assertor.predicate.PredicateAssertorMapTest.java
/** * Test method for {@link AssertorMap} . */// w ww . j av a2 s . co m @Test public void testPredicateGet() { Map<String, Integer> map = new HashMap<>(); map.put("key", 1); assertFalse(Assertor.<String, Integer>ofMap().hasHashCode(0).that(map).isOK()); assertTrue(Assertor.<String, Integer>ofMap().hasHashCode(Objects.hashCode(map)).that(map).isOK()); assertTrue(Assertor.<String, Integer>ofMap().contains("key").and().hasHashCode(Objects.hashCode(map)) .that(map).isOK()); assertTrue(Assertor.<String, Integer>ofMap().contains("key").or().hasHashCode(Objects.hashCode(map)) .that(map).isOK()); assertFalse(Assertor.<String, Integer>ofMap().contains("key").xor().hasHashCode(Objects.hashCode(map)) .that(map).isOK()); assertFalse(Assertor.<String, Integer>ofMap().contains("key").nand().hasHashCode(Objects.hashCode(map)) .that(map).isOK()); assertFalse(Assertor.<String, Integer>ofMap().contains("key").nor().hasHashCode(Objects.hashCode(map)) .that(map).isOK()); }
From source file:it.univaq.disim.mobile.cityshop.business.domain.Prodotto.java
@Override public int hashCode() { int hash = 5; hash = 53 * hash + this.id; hash = 53 * hash + Objects.hashCode(this.nome); hash = 53 * hash + Objects.hashCode(this.descrizione); hash = 53 * hash + Float.floatToIntBits(this.prezzo); hash = 53 * hash + Objects.hashCode(this.foto); hash = 53 * hash + Objects.hashCode(this.categoria); hash = 53 * hash + Objects.hashCode(this.brand); hash = 53 * hash + Objects.hashCode(this.negozio); return hash;// w w w.java2 s . c om }