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

changeset 3
73bdfa70b04e
parent 0
fb9019fb1bf7
equal deleted inserted replaced
0:f5e173e51f9d 1:c5c59dc3e9be
119 /** 119 /**
120 * Overrides superclass to throw an <code>IllegalArgumentException</code> 120 * Overrides superclass to throw an <code>IllegalArgumentException</code>
121 * where argument is not a <code>java.lang.Integer</code>. 121 * where argument is not a <code>java.lang.Integer</code>.
122 * @param arg0 an object to add 122 * @param arg0 an object to add
123 * @return true if the object was added, otherwise false 123 * @return true if the object was added, otherwise false
124 * @see List#add(E) 124 * @see java.util.List#add(Object)
125 */ 125 */
126 public final boolean add(final Object arg0) { 126 public final boolean add(final Object arg0) {
127 if (!(arg0 instanceof Integer)) { 127 if (!(arg0 instanceof Integer)) {
128 throw new IllegalArgumentException("Argument not a " + Integer.class.getName()); 128 throw new IllegalArgumentException("Argument not a " + Integer.class.getName());
129 } 129 }

mercurial