88 |
|
/** |
89 |
|
* Allocates empty array to hold the given number of elements. |
90 |
|
* |
91 |
< |
* @param numElements the number of elements to hold. |
91 |
> |
* @param numElements the number of elements to hold |
92 |
|
*/ |
93 |
|
private void allocateElements(int numElements) { |
94 |
|
int initialCapacity = MIN_INITIAL_CAPACITY; |
555 |
|
} |
556 |
|
|
557 |
|
/** |
558 |
< |
* Returns <tt>true</tt> if this collection contains no elements.<p> |
558 |
> |
* Returns <tt>true</tt> if this collection contains no elements. |
559 |
|
* |
560 |
< |
* @return <tt>true</tt> if this collection contains no elements. |
560 |
> |
* @return <tt>true</tt> if this collection contains no elements |
561 |
|
*/ |
562 |
|
public boolean isEmpty() { |
563 |
|
return head == tail; |