5 |
|
*/ |
6 |
|
|
7 |
|
package java.util; |
8 |
+ |
import java.util.*; // for javadoc |
9 |
|
|
10 |
|
/** |
11 |
|
* A linear collection that supports element insertion and removal at |
188 |
|
* When using a capacity-restricted deque, it is generally preferable to |
189 |
|
* use method {@link #offerLast}. |
190 |
|
* |
191 |
+ |
* <p>This method is equivalent to {@link #add}. |
192 |
+ |
* |
193 |
|
* @param e the element to add |
194 |
|
* @throws IllegalStateException if the element cannot be added at this |
195 |
|
* time due to capacity restrictions |
357 |
|
* When using a capacity-restricted deque, it is generally preferable to |
358 |
|
* use {@link #offer(Object) offer}. |
359 |
|
* |
360 |
< |
* <p>This method is equivalent to {@link #addLast(Object) addLast}. |
360 |
> |
* <p>This method is equivalent to {@link #addLast}. |
361 |
|
* |
362 |
|
* @param e the element to add |
363 |
|
* @return <tt>true</tt> (as per the spec for {@link Collection#add}) |