132 /** |
132 /** |
133 * Overrides superclass to throw an <code>IllegalArgumentException</code> where argument is not a |
133 * Overrides superclass to throw an <code>IllegalArgumentException</code> where argument is not a |
134 * <code>net.fortuna.ical4j.model.Property</code>. |
134 * <code>net.fortuna.ical4j.model.Property</code>. |
135 * @param property a property to add |
135 * @param property a property to add |
136 * @return true if the property is added, otherwise false |
136 * @return true if the property is added, otherwise false |
137 * @see java.util.List#add(E) |
137 * @see java.util.List#add(Object) |
138 */ |
138 */ |
139 public final boolean add(final Object property) { |
139 public final boolean add(final Object property) { |
140 if (!(property instanceof Property)) { |
140 if (!(property instanceof Property)) { |
141 throw new IllegalArgumentException("Argument not a " |
141 throw new IllegalArgumentException("Argument not a " |
142 + Property.class.getName()); |
142 + Property.class.getName()); |