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

changeset 3
73bdfa70b04e
parent 0
fb9019fb1bf7
equal deleted inserted replaced
0:df05f98dba6b 1:b3658dfbca6e
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());

mercurial