| |
|
| java.lang.Object org.hsqldb.lib.BaseList org.hsqldb.lib.HsqlArrayList
HsqlArrayList | public class HsqlArrayList extends BaseList implements HsqlList(Code) | | Intended as an asynchronous alternative to Vector. Use HsqlLinkedList
instead if its better suited.
author: dnordahl@users version: 1.8.0 since: 1.7.0 |
HsqlArrayList | public HsqlArrayList()(Code) | | Creates a new instance of HsqlArrayList
|
HsqlArrayList | public HsqlArrayList(boolean minimize)(Code) | | Creates a new instance of HsqlArrayList that minimizes the size when
empty
|
HsqlArrayList | public HsqlArrayList(int initialCapacity)(Code) | | Creates a new instance with the given initial capacity
|
add | public void add(int index, Object element)(Code) | | Inserts an element at the given index
|
add | public boolean add(Object element)(Code) | | Appends an element to the end of the list
|
clear | public void clear()(Code) | | |
get | public Object get(int index)(Code) | | Gets the element at given position
|
indexOf | public int indexOf(Object o)(Code) | | returns the index of given object or -1 if nt found
|
remove | public Object remove(int index)(Code) | | Removes and returns the element at given position
|
set | public Object set(int index, Object element)(Code) | | Replaces the element at given position
|
setSize | public void setSize(int newSize)(Code) | | |
size | final public int size()(Code) | | Returns the number of elements in the array list
|
toArray | public Object toArray(Object a)(Code) | | Copies all elements of the list to a[]. It is assumed a[] is of the
correct type. If a[] is too small, a new array or the same type is
returned. If a[] is larger, only the list elements are copied and no
other change is made to the array.
Differs from the implementation in java.util.ArrayList in the second
aspect.
|
trim | public void trim()(Code) | | Trims the array to be the same size as the number of elements.
|
Fields inherited from org.hsqldb.lib.BaseList | protected int elementCount(Code)(Java Doc)
|
|
|
|