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;
 }
 @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;
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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;
 }
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 67 * hash + Objects.hashCode(this.superPopulation);
   hash = 67 * hash + Objects.hashCode(this.population);
   return hash;
 }
Exemple #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;
 }
 @Override
 public int hashCode() {
   int hash = 5;
   hash = 97 * hash + Objects.hashCode(this.item);
   hash = 97 * hash + Objects.hashCode(this.next);
   return hash;
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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;
 }
 @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;
 }
Exemple #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;
 }
Exemple #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);
 }
 @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;
 }
 @Override
 public int hashCode() {
   int hash = 7;
   hash = 97 * hash + Objects.hashCode(this.name);
   hash = 97 * hash + Objects.hashCode(this.ip);
   return hash;
 }
Exemple #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;
 }
Exemple #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;
 }