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() { |
802 |
|
} |
803 |
|
} |
804 |
|
|
805 |
– |
/** |
806 |
– |
* Appease the serialization gods. |
807 |
– |
*/ |
805 |
|
private static final long serialVersionUID = 2340985798034038923L; |
806 |
|
|
807 |
|
/** |
808 |
< |
* Serialize this deque. |
808 |
> |
* Saves this deque to a stream (that is, serializes it). |
809 |
|
* |
810 |
|
* @serialData The current size (<tt>int</tt>) of the deque, |
811 |
|
* followed by all of its elements (each an object reference) in |
825 |
|
} |
826 |
|
|
827 |
|
/** |
828 |
< |
* Deserialize this deque. |
828 |
> |
* Reconstitutes this deque from a stream (that is, deserializes it). |
829 |
|
*/ |
830 |
|
private void readObject(java.io.ObjectInputStream s) |
831 |
|
throws java.io.IOException, ClassNotFoundException { |