Esempio n. 1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((userId == null) ? 0 : userId.hashCode());
   result = prime * result + ((image == null) ? 0 : image.hashCode());
   return result;
 }
Esempio n. 2
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   final CreateVetRequest other = (CreateVetRequest) obj;
   if ((userId == null && other.userId != null) || !userId.equals(other.userId)) return false;
   if ((image == null && other.image != null) || !image.equals(other.image)) return false;
   return true;
 }