164 |
} |
} |
165 |
|
|
166 |
/** |
/** |
167 |
* Copies the contents of a provided array into the Vector. If the |
* Copies the contents of the Vector into the provided array. If the |
168 |
* array is too large to fit in the Vector, an IndexOutOfBoundsException |
* array is too small to fit all the elements in the Vector, an |
169 |
* is thrown without modifying the array. Old elements in the Vector are |
* {@link IndexOutOfBoundsException} is thrown without modifying the array. |
170 |
* overwritten by the new elements. |
* Old elements in the array are overwritten by the new elements. |
171 |
* |
* |
172 |
* @param a target array for the copy |
* @param a target array for the copy |
173 |
* @throws IndexOutOfBoundsException the array is not large enough |
* @throws IndexOutOfBoundsException the array is not large enough |