120 |
} |
} |
121 |
|
|
122 |
/** |
/** |
123 |
* Construct a new ArrayList with the default capcity (16). |
* Construct a new ArrayList with the default capacity (16). |
124 |
*/ |
*/ |
125 |
public ArrayList() |
public ArrayList() |
126 |
{ |
{ |
311 |
} |
} |
312 |
|
|
313 |
/** |
/** |
314 |
* Sets the element at the specified index. |
* Sets the element at the specified index. The new element, e, |
315 |
|
* can be an object of any type or null. |
316 |
* |
* |
317 |
* @param index the index at which the element is being set |
* @param index the index at which the element is being set |
318 |
* @param e the element to be set |
* @param e the element to be set |
329 |
|
|
330 |
/** |
/** |
331 |
* Appends the supplied element to the end of this list. |
* Appends the supplied element to the end of this list. |
332 |
|
* The element, e, can be an object of any type or null. |
333 |
* |
* |
334 |
* @param e the element to be appended to this list |
* @param e the element to be appended to this list |
335 |
* @return true, the add will always succeed |
* @return true, the add will always succeed |
346 |
/** |
/** |
347 |
* Adds the supplied element at the specified index, shifting all |
* Adds the supplied element at the specified index, shifting all |
348 |
* elements currently at that index or higher one to the right. |
* elements currently at that index or higher one to the right. |
349 |
|
* The element, e, can be an object of any type or null. |
350 |
* |
* |
351 |
* @param index the index at which the element is being added |
* @param index the index at which the element is being added |
352 |
* @param e the item being added |
* @param e the item being added |
400 |
/** |
/** |
401 |
* Add each element in the supplied Collection to this List. It is undefined |
* Add each element in the supplied Collection to this List. It is undefined |
402 |
* what happens if you modify the list while this is taking place; for |
* what happens if you modify the list while this is taking place; for |
403 |
* example, if the collection contains this list. |
* example, if the collection contains this list. c can contain objects |
404 |
|
* of any type, as well as null values. |
405 |
* |
* |
406 |
* @param c a Collection containing elements to be added to this List |
* @param c a Collection containing elements to be added to this List |
407 |
* @return true if the list was modified, in other words c is not empty |
* @return true if the list was modified, in other words c is not empty |
414 |
|
|
415 |
/** |
/** |
416 |
* Add all elements in the supplied collection, inserting them beginning |
* Add all elements in the supplied collection, inserting them beginning |
417 |
* at the specified index. |
* at the specified index. c can contain objects of any type, as well |
418 |
|
* as null values. |
419 |
* |
* |
420 |
* @param index the index at which the elements will be inserted |
* @param index the index at which the elements will be inserted |
421 |
* @param c the Collection containing the elements to be inserted |
* @param c the Collection containing the elements to be inserted |