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
This commit is contained in:
parent
294fbfc89f
commit
477a21f7f9
13 changed files with 568 additions and 54 deletions
|
@ -105,7 +105,9 @@ public abstract class AbstractSequentialList extends AbstractList
|
|||
* @throws ClassCastException if o cannot be added to this list due to its
|
||||
* type
|
||||
* @throws IllegalArgumentException if o cannot be added to this list for
|
||||
* some other reason
|
||||
* some other reason.
|
||||
* @throws NullPointerException if o is null and the list does not permit
|
||||
* the addition of null values.
|
||||
*/
|
||||
public void add(int index, Object o)
|
||||
{
|
||||
|
@ -137,6 +139,8 @@ public abstract class AbstractSequentialList extends AbstractList
|
|||
* @throws IllegalArgumentException if some element of c cannot be added
|
||||
* to this list for some other reason
|
||||
* @throws NullPointerException if the specified collection is null
|
||||
* @throws NullPointerException if an object, o, in c is null and the list
|
||||
* does not permit the addition of null values.
|
||||
* @see #add(int, Object)
|
||||
*/
|
||||
public boolean addAll(int index, Collection c)
|
||||
|
@ -214,6 +218,8 @@ public abstract class AbstractSequentialList extends AbstractList
|
|||
* type
|
||||
* @throws IllegalArgumentException if o cannot be added to this list for
|
||||
* some other reason
|
||||
* @throws NullPointerException if o is null and the list does not allow
|
||||
* a value to be set to null.
|
||||
*/
|
||||
public Object set(int index, Object o)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue