| |
|
| java.lang.Object org.hsqldb.lib.BaseList org.hsqldb.lib.HsqlLinkedList
HsqlLinkedList | public class HsqlLinkedList extends BaseList implements HsqlList(Code) | | Intended as an asynchronous alternative to HsqlArrayList. Use HsqlArrayList if
the list won't be initialized sequentially and if frequent references to
specific element positions will be made.
author: jcpeck@users version: 1.7.2 since: 1.7.2 |
Constructor Summary | |
public | HsqlLinkedList() Creates a new instance of HsqlLinkedList. |
Method Summary | |
public void | add(int index, Object element) Inserts element at index . | public boolean | add(Object element) Appends element to the end of this list. | public void | clear() | public Object | get(int index) | final protected Node | getInternal(int index) Helper method that returns the Node at index .
Parameters: index - The index of the Node to return. | public Object | remove(int index) Removes and returns the element at index . | public Object | set(int index, Object element) Replaces the current element at index/code> with
element . | final public int | size() Accessor for the size of this linked list. |
HsqlLinkedList | public HsqlLinkedList()(Code) | | Creates a new instance of HsqlLinkedList.
|
add | public boolean add(Object element)(Code) | | Appends element to the end of this list.
true |
clear | public void clear()(Code) | | |
get | public Object get(int index)(Code) | | Gets the element at given position
IndexOutOfBoundsException if index is not validindex within the list (0 <= index <size ). |
getInternal | final protected Node getInternal(int index)(Code) | | Helper method that returns the Node at index .
Parameters: index - The index of the Node to return. The Node at the given index. IndexOutOfBoundsException if index is not validindex within the list (0 <= index <size ). |
remove | public Object remove(int index)(Code) | | Removes and returns the element at index .
IndexOutOfBoundsException if index is not validindex within the list (0 <= index <size ). |
set | public Object set(int index, Object element)(Code) | | Replaces the current element at index/code> with
element .
The current element at index . |
size | final public int size()(Code) | | Accessor for the size of this linked list. The size is the total number
of elements in the list and is one greater than the largest index in the
list.
The size of this. |
Fields inherited from org.hsqldb.lib.BaseList | protected int elementCount(Code)(Java Doc)
|
|
|
|