| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final float | |
| pack-priv Object[] | |
| private final boolean | |
| pack-priv Object[] | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | HsqlArrayList(int
int initialCapacity, boolean boolean minimize)Creates a new instance of HsqlArrayList that minimizes the size when empty |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int
int index, E E element)Implements org. Inserts an element at the given index |
| public boolean | Returns: booleanE element)Implements abstract org. Implements org. Appends an element to the end of the list |
| public void | |
| public boolean | contains(Object o)
Overrides org. Implements org.
|
| public E | Returns: Eint index)Implements abstract org. Implements org. Gets the element at given position |
| public E[] | |
| private void | |
| public int | Returns: intObject o)Overrides org. returns the index of given object or -1 if not found |
| public int | |
| public boolean | |
| public E | Returns: Eint index)Implements abstract org. Implements org. Removes and returns the element at given position |
| private void | |
| public E | Returns: Eint index, E E element)Implements org. Replaces the element at given position |
| public void | |
| public final int | Returns: intImplements abstract org. Implements org. Returns the number of elements in the array list |
| public void | |
| public Object[] | |
| public < type of array element T> T[] | |
| public void | toArraySlice(E[]
E[] array, int int start, int int limit)Copies elements of the list from start to limit to array. |
| public void |
| DEFAULT_INITIAL_CAPACITY | back to summary |
|---|---|
| private static final int DEFAULT_INITIAL_CAPACITY | |
| DEFAULT_RESIZE_FACTOR | back to summary |
|---|---|
| private static final float DEFAULT_RESIZE_FACTOR | |
| elementData | back to summary |
|---|---|
| pack-priv Object[] elementData | |
| minimizeOnClear | back to summary |
|---|---|
| private final boolean minimizeOnClear | |
| reserveElementData | back to summary |
|---|---|
| pack-priv Object[] reserveElementData | |
| typedArray | back to summary |
|---|---|
| private final boolean typedArray | |
| HsqlArrayList | back to summary |
|---|---|
| public HsqlArrayList(E[] data, int count, boolean minimize) | |
| HsqlArrayList | back to summary |
|---|---|
| public HsqlArrayList() Creates a new instance of HsqlArrayList
| |
| HsqlArrayList | back to summary |
|---|---|
| public HsqlArrayList(int initialCapacity, boolean minimize) Creates a new instance of HsqlArrayList that minimizes the size when empty
| |
| HsqlArrayList | back to summary |
|---|---|
| public HsqlArrayList(int initialCapacity) Creates a new instance with the given initial capacity
| |
| add | back to summary |
|---|---|
| public void add(int index, E element) Implements org. Inserts an element at the given index
| |
| add | back to summary |
|---|---|
| public boolean add(E element) Implements abstract org. Implements org. Appends an element to the end of the list
| |
| clear | back to summary |
|---|---|
| public void clear() Implements org. | |
| contains | back to summary |
|---|---|
| public boolean contains(Object o) Overrides org. Implements org.
| |
| get | back to summary |
|---|---|
| public E get(int index) Implements abstract org. Implements org. Gets the element at given position
| |
| getArray | back to summary |
|---|---|
| public E[] getArray() | |
| increaseCapacity | back to summary |
|---|---|
| private void increaseCapacity() | |
| indexOf | back to summary |
|---|---|
| public int indexOf(E o) Overrides org. returns the index of given object or -1 if not found
| |
| lastIndexOf | back to summary |
|---|---|
| public int lastIndexOf(E o) | |
| remove | back to summary |
|---|---|
| public boolean remove(E o) Implements org.
| |
| remove | back to summary |
|---|---|
| public E remove(int index) Implements abstract org. Implements org. Removes and returns the element at given position
| |
| resize | back to summary |
|---|---|
| private void resize(int baseSize) | |
| set | back to summary |
|---|---|
| public E set(int index, E element) Implements org. Replaces the element at given position
| |
| setSize | back to summary |
|---|---|
| public void setSize(int newSize) Increase or reduce the size, setting discarded or added elements to null.
| |
| size | back to summary |
|---|---|
| public final int size() Implements abstract org. Implements org. Returns the number of elements in the array list
| |
| sort | back to summary |
|---|---|
| public void sort(Comparator<? super E> c) | |
| toArray | back to summary |
|---|---|
| public Object[] toArray() | |
| toArray | back to summary |
|---|---|
| public <T> T[] toArray(T[] array) Copies all elements of the list to a[]. 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.
| |
| toArraySlice | back to summary |
|---|---|
| public void toArraySlice(E[] array, int start, int limit) Copies elements of the list from start to limit to array. The array must be large enough.
| |
| trim | back to summary |
|---|---|
| public void trim() Trims the array to be the same size as the number of elements. | |