|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The LEAP (environment-dependent) version of the &qote;java.util.List&qote; interface. This interface appears to be exactly the same in J2SE, PJAVA and MIDP. The internal implementation is different in the three cases however.
(J2SE)
Method Summary | |
void |
add(int index,
java.lang.Object o)
Inserts the specified element at the specified position in this list |
void |
clear()
Removes all of the elements from this list (optional operation). |
boolean |
contains(java.lang.Object o)
Returns true if this list contains the specified element. |
java.lang.Object |
get(int index)
Returns the element at the specified position in this list. |
int |
indexOf(java.lang.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. |
java.lang.Object |
remove(int index)
Removes the element at the specified position in this list. |
Methods inherited from interface jade.util.leap.Collection |
add, isEmpty, iterator, remove, size, toArray |
Method Detail |
public void add(int index, java.lang.Object o)
public void clear()
public boolean contains(java.lang.Object o)
o
- element whose presence in this list is to be tested.
public java.lang.Object get(int index)
index
- index of element to return.
java.lang.IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= size()).public int indexOf(java.lang.Object o)
o
- element to search for.
public java.lang.Object remove(int index)
index
- the index of the element to removed.
java.lang.IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= size()).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |