src/net/fortuna/ical4j/model/WeekDayList.java

changeset 4
45d57ecba757
parent 0
fb9019fb1bf7
equal deleted inserted replaced
0:dd4f184ed73b 1:5f6955f6bc53
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 }

mercurial