|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface of the list types of collections.
Method Summary | |
void |
add(int index,
Object element)
Inserts the specified element at the specified position in this list (optional operation). |
Object |
get(int index)
Returns the element at the specified position in this list. |
int |
indexOf(Object o)
Returns the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element. |
Object |
remove(int index)
Removes the element at the specified position in this list (optional operation). |
Object |
set(int index,
Object element)
Replaces the element at the specified position in this list with the specified element (optional operation). |
Methods inherited from interface chrriis.uihierarchy.compatibility.Collection |
add, addAll, contains, isEmpty, remove, removeAll, size, toArray, toArray |
Method Detail |
public Object get(int index)
index
- The index.
public void add(int index, Object element)
index
- The index.element
- The element.public Object remove(int index)
index
- The index of the element to remove.
public Object set(int index, Object element)
index
- The index at which to set the element.element
- The element to set.
public int indexOf(Object o)
o
- The element to look for.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |