1 |
+ |
/* |
2 |
+ |
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
+ |
* Expert Group and released to the public domain. Use, modify, and |
4 |
+ |
* redistribute this code in any way without acknowledgement. |
5 |
+ |
*/ |
6 |
+ |
|
7 |
|
package java.util; |
8 |
|
|
9 |
|
/** |
13 |
|
* The provided implementations all assume that the base implementation |
14 |
|
* does <em>not</em> allow null elements. |
15 |
|
*/ |
16 |
+ |
|
17 |
|
public abstract class AbstractQueue<E> extends AbstractCollection<E> implements Queue<E> { |
18 |
|
|
19 |
|
public boolean add(E x) { |