|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectchrriis.uihierarchy.compatibility.ArrayList
The arrayList compatible version.
| Constructor Summary | |
ArrayList()
Constructs an empty list with an initial capacity of ten. |
|
ArrayList(Collection c)
Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator. |
|
ArrayList(int initialCapacity)
Constructs an empty list with the specified initial capacity. |
|
| Method Summary | |
void |
add(int index,
Object element)
Inserts the specified element at the specified position in this list (optional operation). |
boolean |
add(Object o)
Appends the specified element to the end of this list (optional operation). |
boolean |
addAll(Collection c)
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation). |
boolean |
contains(Object o)
Returns true if this collection contains the specified element. |
void |
ensureCapacity(int minCapacity)
Increases the capacity of this ArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument. |
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. |
boolean |
isEmpty()
Returns true if this list contains no elements. |
Object |
remove(int index)
Removes the element at the specified position in this list (optional operation). |
boolean |
remove(Object o)
Removes the first occurrence in this list of the specified element (optional operation). |
boolean |
removeAll(Collection c)
Removes all this collection's elements that are also contained in the specified collection (optional operation). |
Object |
set(int index,
Object element)
Replaces the element at the specified position in this list with the specified element (optional operation). |
int |
size()
Returns the number of elements in this list. |
Object[] |
toArray()
Returns an array containing all of the elements in this collection. |
Object[] |
toArray(Object[] a)
Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ArrayList()
public ArrayList(Collection c)
c - The collection.public ArrayList(int initialCapacity)
initialCapacity - The initial capacity.| Method Detail |
public boolean contains(Object o)
contains in interface Collectiono - The object to look for.
public int size()
size in interface Collectionpublic Object get(int index)
get in interface Listindex - The index.
public Object[] toArray()
toArray in interface Collectionpublic Object[] toArray(Object[] a)
toArray in interface Collectiona - The array from which to get the type.
public boolean add(Object o)
add in interface Collectiono - The object to add.
public void add(int index,
Object element)
add in interface Listindex - The index.element - The element.public boolean addAll(Collection c)
addAll in interface Collectionc - The collection.
public Object remove(int index)
remove in interface Listindex - The index of the element to remove.
public boolean remove(Object o)
remove in interface Collectiono - The element to remove.
public boolean removeAll(Collection c)
removeAll in interface Collectionc - The collection of elements to remove.
public Object set(int index,
Object element)
set in interface Listindex - The index at which to set the element.element - The element to set.
public int indexOf(Object o)
indexOf in interface Listo - The element to look for.
public boolean isEmpty()
isEmpty in interface Collectionpublic void ensureCapacity(int minCapacity)
minCapacity - The minimum capacity.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||