/** * Creates a clone of this rule. * * @return a clone of this rule. * * @throws CloneNotSupportedException this should never happen. */ public Object clone() throws CloneNotSupportedException { final RelativeDayOfWeekRule duplicate = (RelativeDayOfWeekRule) super.clone(); duplicate.subrule = (AnnualDateRule) duplicate.getSubrule().clone(); return duplicate; }
/** * Creates a clone of this rule. * * @return a clone of this rule. * * @throws CloneNotSupportedException this should never happen. */ public Object clone() throws CloneNotSupportedException { final RelativeDayOfWeekRule duplicate = (RelativeDayOfWeekRule) super.clone(); duplicate.subrule = (AnnualDateRule) duplicate.getSubrule().clone(); return duplicate; }
/** * Creates a clone of this rule. * * @return a clone of this rule. * * @throws CloneNotSupportedException this should never happen. */ public Object clone() throws CloneNotSupportedException { final RelativeDayOfWeekRule duplicate = (RelativeDayOfWeekRule) super.clone(); duplicate.subrule = (AnnualDateRule) duplicate.getSubrule().clone(); return duplicate; }