|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WritableList
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 |
---|
void add(Object element)
element
- Element to add.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.void removeAt(int index)
index
- Index of the element to remove.void remove(Object element)
Note: this operation may be linear with respect to the number of elements in the list.
element
- Element to remove.void removeAll()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.