nextapp.echo.app.util
Class ResizingArrayList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
nextapp.echo.app.util.ResizingArrayList
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess
public class ResizingArrayList
- extends java.util.ArrayList
An ArrayList
based collection which automatically increases and
decreases in size (by adding/removing trailing nulls) to allow the ability
to invoke add()
and set()
methods to store
values at indices beyond the current size of the collection.
- See Also:
- Serialized Form
Fields inherited from class java.util.AbstractList |
modCount |
Method Summary |
void |
add(int i,
java.lang.Object o)
|
java.lang.Object |
remove(int i)
|
boolean |
remove(java.lang.Object o)
|
java.lang.Object |
set(int i,
java.lang.Object o)
|
Methods inherited from class java.util.ArrayList |
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, removeRange, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
ResizingArrayList
public ResizingArrayList()
add
public void add(int i,
java.lang.Object o)
- Specified by:
add
in interface java.util.List
- Overrides:
add
in class java.util.ArrayList
- See Also:
List.add(int, java.lang.Object)
remove
public java.lang.Object remove(int i)
- Specified by:
remove
in interface java.util.List
- Overrides:
remove
in class java.util.ArrayList
- See Also:
List.remove(int)
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Collection
- Specified by:
remove
in interface java.util.List
- Overrides:
remove
in class java.util.ArrayList
- See Also:
Collection.remove(java.lang.Object)
set
public java.lang.Object set(int i,
java.lang.Object o)
- Specified by:
set
in interface java.util.List
- Overrides:
set
in class java.util.ArrayList
- See Also:
List.add(int, java.lang.Object)