Beispiel #1
0
 @Override
 public int hashCode() {
   int result = smallImage != null ? smallImage.hashCode() : 0;
   result = 31 * result + (largeImage != null ? largeImage.hashCode() : 0);
   result = 31 * result + (fullImage != null ? fullImage.hashCode() : 0);
   return result;
 }
Beispiel #2
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    Avatar avatar = (Avatar) o;

    if (fullImage != null ? !fullImage.equals(avatar.fullImage) : avatar.fullImage != null)
      return false;
    if (largeImage != null ? !largeImage.equals(avatar.largeImage) : avatar.largeImage != null)
      return false;
    if (smallImage != null ? !smallImage.equals(avatar.smallImage) : avatar.smallImage != null)
      return false;

    return true;
  }