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 } |