diff options
| author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2004-08-29 17:28:09 +0000 |
|---|---|---|
| committer | Andreas Tobler <andreast@gcc.gnu.org> | 2004-08-29 19:28:09 +0200 |
| commit | 477a21f7f9b31c687d45f1001dd93c90df52cf29 (patch) | |
| tree | 20a303114d352cf8ac2c2a4bf36764aa0a06579a /libjava/java/util/ArrayList.java | |
| parent | 294fbfc89faac46092334188d2bbe527880794a7 (diff) | |
AbstractCollection.java, [...]: Added additional exceptions to documentation...
2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/util/AbstractCollection.java, java/util/AbstractList.java,
java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
java/util/ArrayList.java, java/util/Arrays.java,
java/util/BitSet.java, java/util/Calendar.java,
java/util/Collection.java, java/util/ListIterator.java,
java/util/Map.java, java/util/SortedSet.java:
Added additional exceptions to documentation, along
with some additions and corrections.
From-SVN: r86730
Diffstat (limited to 'libjava/java/util/ArrayList.java')
| -rw-r--r-- | libjava/java/util/ArrayList.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libjava/java/util/ArrayList.java b/libjava/java/util/ArrayList.java index a451f1e4c4a..e39e4e0171b 100644 --- a/libjava/java/util/ArrayList.java +++ b/libjava/java/util/ArrayList.java @@ -120,7 +120,7 @@ public class ArrayList extends AbstractList } /** - * Construct a new ArrayList with the default capcity (16). + * Construct a new ArrayList with the default capacity (16). */ public ArrayList() { @@ -311,7 +311,8 @@ public class ArrayList extends AbstractList } /** - * Sets the element at the specified index. + * Sets the element at the specified index. The new element, e, + * can be an object of any type or null. * * @param index the index at which the element is being set * @param e the element to be set @@ -328,6 +329,7 @@ public class ArrayList extends AbstractList /** * Appends the supplied element to the end of this list. + * The element, e, can be an object of any type or null. * * @param e the element to be appended to this list * @return true, the add will always succeed @@ -344,6 +346,7 @@ public class ArrayList extends AbstractList /** * Adds the supplied element at the specified index, shifting all * elements currently at that index or higher one to the right. + * The element, e, can be an object of any type or null. * * @param index the index at which the element is being added * @param e the item being added @@ -397,7 +400,8 @@ public class ArrayList extends AbstractList /** * Add each element in the supplied Collection to this List. It is undefined * what happens if you modify the list while this is taking place; for - * example, if the collection contains this list. + * example, if the collection contains this list. c can contain objects + * of any type, as well as null values. * * @param c a Collection containing elements to be added to this List * @return true if the list was modified, in other words c is not empty @@ -410,7 +414,8 @@ public class ArrayList extends AbstractList /** * Add all elements in the supplied collection, inserting them beginning - * at the specified index. + * at the specified index. c can contain objects of any type, as well + * as null values. * * @param index the index at which the elements will be inserted * @param c the Collection containing the elements to be inserted |
