Ejemplo n.º 1
0
  @Override
  public boolean equals(Object o) {
    if (o == this) return true;
    if (!(o instanceof Employee)) return false;
    Employee e = (Employee) o;

    return lastName.equalsIgnoreCase(e.lastName)
        && firstName.equalsIgnoreCase(e.firstName)
        && (title == null ? e.title == null : title.equalsIgnoreCase(e.title))
        && (titleCourtesy == null
            ? e.titleCourtesy == null
            : titleCourtesy.equalsIgnoreCase(e.titleCourtesy))
        && (birthDate == null ? e.birthDate == null : birthDate.equals(e.birthDate))
        && (hireDate == null ? e.hireDate == null : hireDate.equals(e.hireDate))
        && (address == null ? e.address == null : address.equalsIgnoreCase(e.address))
        && (city == null ? e.city == null : city.equalsIgnoreCase(e.city))
        && (region == null ? e.region == null : region.equalsIgnoreCase(e.region))
        && (postalCode == null ? e.postalCode == null : postalCode.equalsIgnoreCase(e.postalCode))
        && (country == null ? e.country == null : country.equalsIgnoreCase(e.country))
        && (homePhone == null ? e.homePhone == null : homePhone.equalsIgnoreCase(e.homePhone))
        && (extension == null ? e.extension == null : extension.equalsIgnoreCase(e.extension))
        && Arrays.equals(photo, e.photo)
        && (notes == null ? e.notes == null : notes.equalsIgnoreCase(e.notes))
        && (reportsTo == null ? e.reportsTo == null : reportsTo.equals(e.reportsTo))
        && (photoPath == null ? e.photoPath == null : photoPath.equalsIgnoreCase(e.photoPath));
  }
    @Override
    public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;

      DayToSelect that = (DayToSelect) o;

      return date.equals(that.date);
    }
Ejemplo n.º 3
0
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }

    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    final BlockEvent that = (BlockEvent) o;
    return time.equals(that.time) && type.equals(that.type);
  }