public class GrowableArrayList<E> extends ArrayList<E>
ArrayList
subclass that will never throw an IndexOutOfBoundsException
and instead grow the backing array to match the
size of the requested operation.modCount
Constructor and Description |
---|
GrowableArrayList() |
GrowableArrayList(Collection<? extends E> c) |
GrowableArrayList(int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
E element) |
E |
get(int index) |
E |
remove(int index) |
protected void |
removeRange(int fromIndex,
int toIndex) |
E |
set(int index,
E element) |
add, addAll, addAll, clear, clone, contains, ensureCapacity, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
public GrowableArrayList()
public GrowableArrayList(Collection<? extends E> c)
public GrowableArrayList(int capacity)
Copyright © 2012. All Rights Reserved.