Example #1
0
    @Override
    public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;

      DatesFrom datesFrom = (DatesFrom) o;

      if (!from.equals(datesFrom.from)) return false;

      return true;
    }
Example #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;
  }