|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Provides array-like write access to a collection of object elements.
| Method Summary | ||
void |
add(Object element)
Adds an element to the end of this list. |
|
void |
insertAt(int index,
Object element)
Inserts element at index. |
|
void |
remove(Object element)
Removes element. |
|
void |
removeAll()
Removes all elements from the collection. |
|
void |
removeAt(int index)
Removes element by index. |
|
| Method Detail |
public void add(Object element)
element - Element to add.
public void insertAt(int index,
Object element)
If you specify an index that's greater than or equal to the size of the list, then this method adds the element to the end of the list.
index - Index that new element should have.element - Element to insert.public void remove(Object element)
Note: this operation may be linear with respect to the number of elements in the list.
element - Element to remove.public void removeAt(int index)
index - Index of the element to remove.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.