| com.google.gwt.emul.java.util.ArrayList
ArrayList | public class ArrayList extends AbstractList implements List<E>,Cloneable,RandomAccess,Serializable(Code) | | Resizeable array implementation of the List interface. [Sun
docs]
This implementation differs from JDK 1.5 ArrayList in terms of
capacity management. There is no speed advantage to pre-allocating array
sizes in JavaScript, so this implementation does not include any of the
capacity and "growth increment" concepts in the standard ArrayList class.
Although ArrayList(int) accepts a value for the initial
capacity of the array, this constructor simply delegates to
ArrayList() . It is only present for compatibility with JDK
1.5's API.
< Parameters: E - > the element type. |
Constructor Summary | |
public | ArrayList() | public | ArrayList(Collection<? extends E> c) | public | ArrayList(int ignoredInitialCapacity) There is no speed advantage to pre-allocating array sizes in JavaScript. |
ArrayList | public ArrayList()(Code) | | |
ArrayList | public ArrayList(int ignoredInitialCapacity)(Code) | | There is no speed advantage to pre-allocating array sizes in JavaScript.
This constructor is only present for compatibility with the JRE.
|
add | public void add(int index, E o)(Code) | | |
add | public boolean add(E o)(Code) | | |
clear | public void clear()(Code) | | |
get | public E get(int index)(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
lastIndexOf | protected int lastIndexOf(Object o, int index)(Code) | | |
remove | public E remove(int index)(Code) | | |
removeRange | protected void removeRange(int fromIndex, int endIndex)(Code) | | |
set | public E set(int index, E o)(Code) | | |
setSize | protected void setSize(int newSize)(Code) | | This function sets the size of the array, and is used by Vector.
|
subList | public List<E> subList(int fromIndex, int toIndex)(Code) | | |
toArray | public T[] toArray(T[] a)(Code) | | |
trimToSize | public void trimToSize()(Code) | | Currently ignored.
|
|
|