Method Summary |
|
final synchronized void | add(Object o) Appends the specified element to the end of this list. |
final synchronized boolean | addUnique(Object o) Add Object into the list if it is not already exists. |
final int | arraySize() Returns the size of entry use in toArray() number of elements
in this list. |
final synchronized void | clear() Removes all of the elements from this list. |
final synchronized void | clearMirror() |
final protected synchronized Object | clone() Returns a shallow copy of this ArrayList instance. |
final synchronized boolean | contains(Object o) Returns true if this list contains the specified element. |
final synchronized Object | get(int index) Returns the element at the specified position in this list.
Parameters: index - index of element to return. |
final Class | getComponentType() |
final synchronized int | indexOf(Object o) Searches for the last occurence of the given argument, testing
for equality using the equals method. |
final boolean | isEmpty() Tests if this list has no elements. |
final synchronized void | remove(int index) Removes the element at the specified position in this list. |
final synchronized boolean | remove(Object o) Removes the specified element in this list.
Replace the removed element by the last one.
Parameters: o - the element to removed. |
final synchronized Object | removeLastElement() Removes the element at the last position in this list. |
final synchronized void | removeOrdered(int index) Removes the element at the specified position in this list. |
final synchronized void | set(int index, Object element) Replaces the element at the specified position in this list with
the specified element.
Parameters: index - index of element to replace. Parameters: element - element to be stored at the specified position. |
final synchronized void | shift(Object objs, int idx) |
final int | size() Returns the number of elements in this list. |
final synchronized Object[] | toArray(boolean copy) Returns an array containing all of the elements in this list.
The size of the array may longer than the actual size. |
final synchronized Object[] | toArray() Returns an array containing all of the elements in this list.
The size of the array may longer than the actual size. |
final synchronized Object[] | toArray(Object startElement) Returns an array containing elements starting from startElement
all of the elements in this list. |
final synchronized void | toArrayAndClear(Object[] objs) |
public synchronized String | toString() |
final synchronized void | trimToSize() Trims the capacity of this ArrayList instance to be the
list's current size. |