IsSame method
Implementation
@override
bool IsSame(Recurrence otherRecurrence) {
// The base check compares runtime types, so the cast below is safe.
if (!super.IsSame(otherRecurrence)) {
return false;
}
YearlyPattern otherYearlyPattern = otherRecurrence as YearlyPattern;
return _month == otherYearlyPattern._month &&
_dayOfMonth == otherYearlyPattern._dayOfMonth;
}