199 |
|
return super.add(element); |
200 |
|
} |
201 |
|
|
202 |
< |
/** |
203 |
< |
* @throws NullPointerException if any element is <tt>null</tt>. |
204 |
< |
*/ |
205 |
< |
public boolean addAll(Collection c) { |
206 |
< |
return super.addAll(c); |
207 |
< |
} |
202 |
> |
// /** |
203 |
> |
// * @throws NullPointerException if any element is <tt>null</tt>. |
204 |
> |
// */ |
205 |
> |
// public boolean addAll(Collection c) { |
206 |
> |
// return super.addAll(c); |
207 |
> |
// } |
208 |
|
|
209 |
|
/** |
210 |
|
* @throws NullPointerException if the specified element is <tt>null</tt>. |
211 |
|
*/ |
212 |
< |
public boolean remove(E o) { |
212 |
> |
public boolean remove(Object o) { |
213 |
|
if (o == null) |
214 |
|
throw new NullPointerException(); |
215 |
|
|
222 |
|
} |
223 |
|
} else { |
224 |
|
for (int i = 1; i <= size; i++) { |
225 |
< |
if (comparator.compare(queue[i], o) == 0) { |
225 |
> |
if (comparator.compare(queue[i], (E)o) == 0) { |
226 |
|
remove(i); |
227 |
|
return true; |
228 |
|
} |