/** {@inheritDoc} */
 @Override
 public boolean equals(Object object) {
   if (this == object) {
     return true;
   }
   if (object == null) {
     return false;
   }
   if (!(object instanceof TouchedExpiryPolicy)) {
     return false;
   }
   TouchedExpiryPolicy other = (TouchedExpiryPolicy) object;
   if (expiryDuration == null) {
     if (other.expiryDuration != null) {
       return false;
     }
   } else if (!expiryDuration.equals(other.expiryDuration)) {
     return false;
   }
   return true;
 }
示例#2
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    Dates dates = (Dates) o;

    if (customDayOfMonth != null
        ? !customDayOfMonth.equals(dates.customDayOfMonth)
        : dates.customDayOfMonth != null) return false;
    if (customDayOfYear != null
        ? !customDayOfYear.equals(dates.customDayOfYear)
        : dates.customDayOfYear != null) return false;
    if (!duration.equals(dates.duration)) return false;
    if (!from.equals(dates.from)) return false;
    if (!holiday.equals(dates.holiday)) return false;
    if (loc != null ? !loc.equals(dates.loc) : dates.loc != null) return false;
    if (!selector.equals(dates.selector)) return false;
    if (!shifters.equals(dates.shifters)) return false;
    if (!to.equals(dates.to)) return false;

    return true;
  }