Exemple #1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + numeroEmplacement;
   result = prime * result + ((ponton == null) ? 0 : ponton.hashCode());
   result = prime * result + ((type == null) ? 0 : type.hashCode());
   return result;
 }
Exemple #2
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   Emplacement other = (Emplacement) obj;
   if (numeroEmplacement != other.numeroEmplacement) return false;
   if (ponton == null) {
     if (other.ponton != null) return false;
   } else if (!ponton.equals(other.ponton)) return false;
   if (type == null) {
     if (other.type != null) return false;
   } else if (!type.equals(other.type)) return false;
   return true;
 }