コード例 #1
0
 private static int testHashCode() {
   int errors = 0;
   errors += (Objects.hashCode(null) == 0) ? 0 : 1;
   String s = "42";
   errors += (Objects.hashCode(s) == s.hashCode()) ? 0 : 1;
   return errors;
 }
コード例 #2
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 17 * hash + Objects.hashCode(this.mLocal.toLowerCase());
   hash = 17 * hash + Objects.hashCode(this.mDomain.toLowerCase());
   return hash;
 }
コード例 #3
0
ファイル: Analyzer.java プロジェクト: minixalpha/hack-javac
 @Override
 public int hashCode() {
   int hash = 3;
   hash = 17 * hash + Objects.hashCode(this.archive);
   hash = 17 * hash + Objects.hashCode(this.target);
   return hash;
 }
コード例 #4
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 37 * hash + Objects.hashCode(this.getName());
   hash = 37 * hash + Objects.hashCode(this.getPrice());
   return hash;
 }
コード例 #5
0
 @Override
 public int hashCode() {
   int hash = 3;
   hash = 89 * hash + Objects.hashCode(this.codservicio);
   hash = 89 * hash + Objects.hashCode(this.codPaquete);
   return hash;
 }
コード例 #6
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 17 * hash + Objects.hashCode(this.hostname);
   hash = 17 * hash + Objects.hashCode(this.port);
   return hash;
 }
コード例 #7
0
ファイル: CiudadPK.java プロジェクト: AndresLemos/JardinApp2
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 37 * hash + Objects.hashCode(this.idCiudad);
   hash = 37 * hash + Objects.hashCode(this.idDepartamento);
   return hash;
 }
コード例 #8
0
ファイル: Put.java プロジェクト: edigitman/struts-parser
 @Override
 public int hashCode() {
   int hash = 3;
   hash = 61 * hash + Objects.hashCode(this.name);
   hash = 61 * hash + Objects.hashCode(this.value);
   return hash;
 }
コード例 #9
0
ファイル: Pair.java プロジェクト: Guiedo/PvEmu
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 37 * hash + Objects.hashCode(this.first);
   hash = 37 * hash + Objects.hashCode(this.second);
   return hash;
 }
コード例 #10
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 67 * hash + Objects.hashCode(this.superPopulation);
   hash = 67 * hash + Objects.hashCode(this.population);
   return hash;
 }
コード例 #11
0
ファイル: Pair.java プロジェクト: CN-Lyc/HMCL
 @Override
 public int hashCode() {
   int hash = 5;
   hash = 29 * hash + Objects.hashCode(this.key);
   hash = 29 * hash + Objects.hashCode(this.value);
   return hash;
 }
 @Override
 public int hashCode() {
   int hash = 3;
   hash = 29 * hash + Objects.hashCode(this.typeName);
   hash = 29 * hash + Objects.hashCode(this.metamodelAnnotationName);
   return hash;
 }
コード例 #13
0
 @Override
 public int hashCode() {
   int hash = 5;
   hash = 97 * hash + Objects.hashCode(this.item);
   hash = 97 * hash + Objects.hashCode(this.next);
   return hash;
 }
コード例 #14
0
ファイル: GreetingEntity.java プロジェクト: FitburIO/testify
 @Override
 public int hashCode() {
   int hash = 3;
   hash = 67 * hash + Objects.hashCode(this.id);
   hash = 67 * hash + Objects.hashCode(this.phrase);
   return hash;
 }
コード例 #15
0
ファイル: PowerUps.java プロジェクト: tanman32/UltimateChess
 @Override
 public int hashCode() {
   int hash = 3;
   hash = 61 * hash + Objects.hashCode(this.useDescription);
   hash = 61 * hash + Objects.hashCode(this.powerUpAddition);
   return hash;
 }
コード例 #16
0
ファイル: Paint.java プロジェクト: ambieruth/EA_ABODE
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 31 * hash + Objects.hashCode(this.color);
   hash = 31 * hash + Objects.hashCode(this.amount);
   return hash;
 }
コード例 #17
0
ファイル: Lesson.java プロジェクト: satanko-com/AllGrade
 @Override
 public int hashCode() {
   int hash = 5;
   hash = 53 * hash + Objects.hashCode(this.clazz);
   hash = 53 * hash + Objects.hashCode(this.subject);
   return hash;
 }
コード例 #18
0
ファイル: Troupes.java プロジェクト: Kedzio/Shitenno
 /* HashCode & Equals */
 @Override
 public int hashCode() {
   int hash = 5;
   hash = 29 * hash + Objects.hashCode(this.nom);
   hash = 29 * hash + Objects.hashCode(this.couleur);
   return hash;
 }
コード例 #19
0
 @Override
 public int hashCode() {
   int hash = 5;
   hash = 29 * hash + Objects.hashCode(this.caseName);
   hash = 29 * hash + Objects.hashCode(this.date);
   return hash;
 }
コード例 #20
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 29 * hash + Objects.hashCode(this.text);
   hash = 29 * hash + Objects.hashCode(this.pos);
   return hash;
 }
コード例 #21
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 29 * hash + Objects.hashCode(this.id);
   hash = 29 * hash + Objects.hashCode(this.path);
   return hash;
 }
コード例 #22
0
ファイル: TrackPoint.java プロジェクト: robbyn/gianadda
 @Override
 public int hashCode() {
   int hash = 5;
   hash = 29 * hash + Objects.hashCode(this.h);
   hash = 29 * hash + Objects.hashCode(this.time);
   return hash;
 }
コード例 #23
0
ファイル: Tree.java プロジェクト: top-projects/javaslang
 /**
  * Constructs a rose tree branch.
  *
  * @param value A value.
  * @param children A non-empty list of children.
  * @throws NullPointerException if children is null
  * @throws IllegalArgumentException if children is empty
  */
 public Node(T value, List<Node<T>> children) {
   Objects.requireNonNull(children, "children is null");
   this.value = value;
   this.children = children;
   this.size = Lazy.of(() -> 1 + children.foldLeft(0, (acc, child) -> acc + child.length()));
   this.hashCode = 31 * 31 + 31 * Objects.hashCode(value) + Objects.hashCode(children);
 }
コード例 #24
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 41 * hash + Objects.hashCode(this.mChildren);
   hash = 41 * hash + Objects.hashCode(this.mPropertys);
   return hash;
 }
コード例 #25
0
 @Override
 public final int hashCode() {
   int hash = 7;
   hash = 37 * hash + Objects.hashCode(this.currentDateTime);
   hash = 37 * hash + Objects.hashCode(this.date);
   return hash;
 }
コード例 #26
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 97 * hash + Objects.hashCode(this.name);
   hash = 97 * hash + Objects.hashCode(this.ip);
   return hash;
 }
コード例 #27
0
ファイル: Categorie.java プロジェクト: aaitmouloud/ECOM
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 59 * hash + Objects.hashCode(this.nom);
   hash = 59 * hash + Objects.hashCode(this.jeux);
   return hash;
 }
コード例 #28
0
ファイル: Scene.java プロジェクト: didymusbenson/Yggdrasil
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 37 * hash + Objects.hashCode(this.sceneDescription);
   hash = 37 * hash + Objects.hashCode(this.sceneMapSymbol);
   return hash;
 }
コード例 #29
0
 @Override
 public int hashCode() {
   int hash = 5;
   hash = 89 * hash + Objects.hashCode(this.name);
   hash = 89 * hash + Objects.hashCode(this.type);
   return hash;
 }
コード例 #30
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 31 * hash + Objects.hashCode(workspaceId);
   hash = 31 * hash + Objects.hashCode(machineId);
   return hash;
 }