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;
 }
Esempio n. 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;
 }
Esempio n. 3
0
 @Override
 public int hashCode() {
   int hash = 3;
   hash = 17 * hash + Objects.hashCode(this.archive);
   hash = 17 * hash + Objects.hashCode(this.target);
   return hash;
 }
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 37 * hash + Objects.hashCode(this.getName());
   hash = 37 * hash + Objects.hashCode(this.getPrice());
   return hash;
 }
 @Override
 public int hashCode() {
   int hash = 3;
   hash = 89 * hash + Objects.hashCode(this.codservicio);
   hash = 89 * hash + Objects.hashCode(this.codPaquete);
   return hash;
 }
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 17 * hash + Objects.hashCode(this.hostname);
   hash = 17 * hash + Objects.hashCode(this.port);
   return hash;
 }
Esempio n. 7
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 37 * hash + Objects.hashCode(this.idCiudad);
   hash = 37 * hash + Objects.hashCode(this.idDepartamento);
   return hash;
 }
Esempio n. 8
0
 @Override
 public int hashCode() {
   int hash = 3;
   hash = 61 * hash + Objects.hashCode(this.name);
   hash = 61 * hash + Objects.hashCode(this.value);
   return hash;
 }
Esempio n. 9
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 37 * hash + Objects.hashCode(this.first);
   hash = 37 * hash + Objects.hashCode(this.second);
   return hash;
 }
Esempio n. 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;
 }
Esempio n. 11
0
 @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;
 }
Esempio n. 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;
 }
Esempio n. 14
0
 @Override
 public int hashCode() {
   int hash = 3;
   hash = 67 * hash + Objects.hashCode(this.id);
   hash = 67 * hash + Objects.hashCode(this.phrase);
   return hash;
 }
Esempio n. 15
0
 @Override
 public int hashCode() {
   int hash = 3;
   hash = 61 * hash + Objects.hashCode(this.useDescription);
   hash = 61 * hash + Objects.hashCode(this.powerUpAddition);
   return hash;
 }
Esempio n. 16
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 31 * hash + Objects.hashCode(this.color);
   hash = 31 * hash + Objects.hashCode(this.amount);
   return hash;
 }
Esempio n. 17
0
 @Override
 public int hashCode() {
   int hash = 5;
   hash = 53 * hash + Objects.hashCode(this.clazz);
   hash = 53 * hash + Objects.hashCode(this.subject);
   return hash;
 }
Esempio n. 18
0
 /* 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;
 }
 @Override
 public int hashCode() {
   int hash = 5;
   hash = 29 * hash + Objects.hashCode(this.caseName);
   hash = 29 * hash + Objects.hashCode(this.date);
   return hash;
 }
Esempio n. 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;
 }
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 29 * hash + Objects.hashCode(this.id);
   hash = 29 * hash + Objects.hashCode(this.path);
   return hash;
 }
Esempio n. 22
0
 @Override
 public int hashCode() {
   int hash = 5;
   hash = 29 * hash + Objects.hashCode(this.h);
   hash = 29 * hash + Objects.hashCode(this.time);
   return hash;
 }
Esempio n. 23
0
 /**
  * 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);
 }
Esempio n. 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;
 }
 @Override
 public final int hashCode() {
   int hash = 7;
   hash = 37 * hash + Objects.hashCode(this.currentDateTime);
   hash = 37 * hash + Objects.hashCode(this.date);
   return hash;
 }
Esempio n. 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;
 }
Esempio n. 27
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 59 * hash + Objects.hashCode(this.nom);
   hash = 59 * hash + Objects.hashCode(this.jeux);
   return hash;
 }
Esempio n. 28
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 37 * hash + Objects.hashCode(this.sceneDescription);
   hash = 37 * hash + Objects.hashCode(this.sceneMapSymbol);
   return hash;
 }
 @Override
 public int hashCode() {
   int hash = 5;
   hash = 89 * hash + Objects.hashCode(this.name);
   hash = 89 * hash + Objects.hashCode(this.type);
   return hash;
 }
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 31 * hash + Objects.hashCode(workspaceId);
   hash = 31 * hash + Objects.hashCode(machineId);
   return hash;
 }