87 |
|
// ****** Array allocation and resizing utilities ****** |
88 |
|
|
89 |
|
/** |
90 |
< |
* Allocate empty array to hold the given number of elements. |
90 |
> |
* Allocates empty array to hold the given number of elements. |
91 |
|
* |
92 |
|
* @param numElements the number of elements to hold |
93 |
|
*/ |
111 |
|
} |
112 |
|
|
113 |
|
/** |
114 |
< |
* Double the capacity of this deque. Call only when full, i.e., |
114 |
> |
* Doubles the capacity of this deque. Call only when full, i.e., |
115 |
|
* when head and tail have wrapped around to become equal. |
116 |
|
*/ |
117 |
|
private void doubleCapacity() { |