93 /** |
93 /** |
94 * Overrides superclass to throw an <code>IllegalArgumentException</code> |
94 * Overrides superclass to throw an <code>IllegalArgumentException</code> |
95 * where argument is not a <code>net.fortuna.ical4j.model.WeekDay</code>. |
95 * where argument is not a <code>net.fortuna.ical4j.model.WeekDay</code>. |
96 * @param weekday a week day to add |
96 * @param weekday a week day to add |
97 * @return true if the week day is added, otherwise false |
97 * @return true if the week day is added, otherwise false |
98 * @see List#add(E) |
98 * @see java.util.List#add(Object) |
99 */ |
99 */ |
100 public final boolean add(final Object weekday) { |
100 public final boolean add(final Object weekday) { |
101 if (!(weekday instanceof WeekDay)) { |
101 if (!(weekday instanceof WeekDay)) { |
102 throw new IllegalArgumentException("Argument not a " + WeekDay.class.getName()); |
102 throw new IllegalArgumentException("Argument not a " + WeekDay.class.getName()); |
103 } |
103 } |