|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.util.leap.ArrayList
The LEAP (environment-dependent) version of the &qote;java.util.ArrayList&qote; class. This class appears to be exactly the same in J2SE, PJAVA and MIDP. The internal implementation is different in the three cases however.
ArrayList
,
Serialized FormConstructor Summary | |
ArrayList()
Default Constructor, creates an empty List |
|
ArrayList(java.util.ArrayList toBeHiddenList)
Constructs an ArrayList from a java.util.ArrayList. |
|
ArrayList(int size)
Constructor specifying list size |
Method Summary | |
void |
add(int index,
java.lang.Object o)
Inserts the specified element at the specified position in this list |
boolean |
add(java.lang.Object o)
Adds an element. |
void |
clear()
Removes all of the elements from this list (optional operation). |
java.lang.Object |
clone()
Method declaration |
boolean |
contains(java.lang.Object o)
Returns true if this list contains the specified element. |
void |
fromList(java.util.List l)
Fill this list with the content of a given java.util.List object. |
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. |
boolean |
isEmpty()
Checks if the collection contains elements. |
Iterator |
iterator()
Returns an iterator over the elements in this collection. |
java.lang.Object |
remove(int index)
Removes the element at the specified position in this list. |
boolean |
remove(java.lang.Object o)
Removes one instance of the specified element. |
int |
size()
Returns the number of elements in this collection. |
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in this collection. |
java.util.List |
toList()
Method declaration |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ArrayList()
public ArrayList(int size)
public ArrayList(java.util.ArrayList toBeHiddenList)
Method Detail |
public void clear()
List
clear
in interface List
interface
public boolean contains(java.lang.Object o)
List
contains
in interface List
o
- element whose presence in this list is to be tested.
interface
public java.lang.Object get(int index)
List
get
in interface List
index
- index of element to return.
interface
public int indexOf(java.lang.Object o)
List
indexOf
in interface List
o
- element to search for.
interface
public java.lang.Object remove(int index)
List
remove
in interface List
index
- the index of the element to removed.
interface
public void add(int index, java.lang.Object o)
add
in interface List
public boolean add(java.lang.Object o)
Collection
add
in interface Collection
interface
public boolean isEmpty()
Collection
isEmpty
in interface Collection
interface
public boolean remove(java.lang.Object o)
Collection
remove
in interface Collection
o
- the element to be removed
interface
public java.lang.String toString()
toString
in class java.lang.Object
public Iterator iterator()
Collection
iterator
in interface Collection
interface
public java.lang.Object[] toArray()
Collection
toArray
in interface Collection
interface
public int size()
Collection
size
in interface Collection
interface
public java.lang.Object clone()
clone
in class java.lang.Object
public java.util.List toList()
public void fromList(java.util.List l)
java.util.List
object.
l
- The java.util.List
to copy the content
from.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |