/[classpath]/classpath/java/util/ArrayList.java
ViewVC logotype

Diff of /classpath/java/util/ArrayList.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.25 by robilad, Thu Apr 22 11:24:39 2004 UTC revision 1.26 by gnu_andrew, Tue Aug 17 22:19:56 2004 UTC
# Line 120  public class ArrayList extends AbstractL Line 120  public class ArrayList extends AbstractL
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    {    {
# Line 311  public class ArrayList extends AbstractL Line 311  public class ArrayList extends AbstractL
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
# Line 328  public class ArrayList extends AbstractL Line 329  public class ArrayList extends AbstractL
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
# Line 344  public class ArrayList extends AbstractL Line 346  public class ArrayList extends AbstractL
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
# Line 397  public class ArrayList extends AbstractL Line 400  public class ArrayList extends AbstractL
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
# Line 410  public class ArrayList extends AbstractL Line 414  public class ArrayList extends AbstractL
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

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26