5 |
|
*/ |
6 |
|
|
7 |
|
package java.util; |
8 |
+ |
import java.util.*; // for javadoc (till 6280605 is fixed) |
9 |
|
|
10 |
|
/** |
11 |
|
* This class provides skeletal implementations of some {@link Queue} |
54 |
|
* else throws an <tt>IllegalStateException</tt>. |
55 |
|
* |
56 |
|
* @param e the element to add |
57 |
< |
* @return <tt>true</tt> (as per the spec for {@link Collection#add}) |
57 |
> |
* @return <tt>true</tt> (as specified by {@link Collection#add}) |
58 |
|
* @throws IllegalStateException if the element cannot be added at this |
59 |
|
* time due to capacity restrictions |
60 |
|
* @throws ClassCastException if the class of the specified element |
73 |
|
|
74 |
|
/** |
75 |
|
* Retrieves and removes the head of this queue. This method differs |
76 |
< |
* from {@link #poll} only in that it throws an exception if this queue |
77 |
< |
* is empty. |
76 |
> |
* from {@link #poll poll} only in that it throws an exception if this |
77 |
> |
* queue is empty. |
78 |
|
* |
79 |
|
* <p>This implementation returns the result of <tt>poll</tt> |
80 |
|
* unless the queue is empty. |
92 |
|
|
93 |
|
/** |
94 |
|
* Retrieves, but does not remove, the head of this queue. This method |
95 |
< |
* differs from {@link #peek} only in that it throws an exception if |
95 |
> |
* differs from {@link #peek peek} only in that it throws an exception if |
96 |
|
* this queue is empty. |
97 |
|
* |
98 |
|
* <p>This implementation returns the result of <tt>peek</tt> |