org.hsqldb.lib
Class HsqlDeque
java.lang.Object
org.hsqldb.lib.BaseList
org.hsqldb.lib.HsqlDeque
- All Implemented Interfaces:
- HsqlList
- public class HsqlDeque
- extends org.hsqldb.lib.BaseList
- implements HsqlList
jdk 1.1 compatible minimal implementation of a list object suitable for
stack, queue and deque usage patterns backed by an Object[].
The memory footprint of the HsqlDeque doubles when it gets full
but does not shrink when it gets empty.
- Since:
- 1.7.0
- Version:
- 1.7.2
- Author:
- fredt@users
elementCount
protected int elementCount
HsqlDeque
public HsqlDeque()
size
public int size()
- Specified by:
size
in interface HsqlList
getFirst
public Object getFirst()
throws NoSuchElementException
- Throws:
NoSuchElementException
getLast
public Object getLast()
throws NoSuchElementException
- Throws:
NoSuchElementException
get
public Object get(int i)
throws IndexOutOfBoundsException
- Specified by:
get
in interface HsqlList
- Throws:
IndexOutOfBoundsException
remove
public Object remove(int i)
- Specified by:
remove
in interface HsqlList
add
public void add(int i,
Object o)
throws IndexOutOfBoundsException
- Specified by:
add
in interface HsqlList
- Throws:
IndexOutOfBoundsException
set
public Object set(int i,
Object o)
throws IndexOutOfBoundsException
- Specified by:
set
in interface HsqlList
- Throws:
IndexOutOfBoundsException
removeFirst
public Object removeFirst()
throws NoSuchElementException
- Throws:
NoSuchElementException
removeLast
public Object removeLast()
throws NoSuchElementException
- Throws:
NoSuchElementException
add
public boolean add(Object o)
- Specified by:
add
in interface HsqlList
addLast
public boolean addLast(Object o)
addFirst
public boolean addFirst(Object o)
clear
public void clear()
isEmpty
public boolean isEmpty()
toString
public String toString()
- Returns a string representation
iterator
public Iterator iterator()
Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.