79 |
|
* @see java.util.concurrent.PriorityBlockingQueue |
80 |
|
* @since 1.5 |
81 |
|
* @author Doug Lea |
82 |
+ |
* @param <E> the type of elements held in this collection |
83 |
|
*/ |
84 |
|
public interface Queue<E> extends Collection<E> { |
85 |
|
|
86 |
|
/** |
87 |
< |
* Inserts the specified element to this queue, if possible. When |
87 |
> |
* Inserts the specified element into this queue, if possible. When |
88 |
|
* using queues that may impose insertion restrictions (for |
89 |
|
* example capacity bounds), method <tt>offer</tt> is generally |
90 |
|
* preferable to method {@link Collection#add}, which can fail to |