Module org.hsqldb

Class HsqlDeque<E>

java.lang.Object
org.hsqldb.lib.HsqlDeque<E>
All Implemented Interfaces:
Collection<E>, List<E>

public class HsqlDeque<E> extends Object implements List<E>
A List<E> that also implements Deque<E> and Queue<E> and methods for usage as stack.

When used as Queue<E>, elements are added to the end of the List (tail), and retrieved from the start of the List (head).

When used as a stack, elements are added to and retrieved from the start of the List (head) using push() and pop() methods.

Data is stored in an Object[] that doubles in size when the List gets full but does not shrink when it gets empty.

Since:
1.7.0, 20020130
Author:
Fred Toussi (fredt@users dot sourceforge.net)