Exemplo n.º 1
0
 @Override
 public boolean equals(final Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (this.getClass() != obj.getClass()) {
     return false;
   }
   final Room other = (Room) obj;
   if (this.property == null) {
     if (other.property != null) {
       return false;
     }
   } else if (!this.property.equals(other.property)) {
     return false;
   }
   if (this.getSize() != other.getSize()) {
     return false;
   }
   if (this.getType() != other.getType()) {
     return false;
   }
   return true;
 }