org.hsqldb.lib
Class HsqlDeque
java.lang.Object
org.hsqldb.lib.HsqlDeque
- public class HsqlDeque
- extends java.lang.Object
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.
- Author:
- fredt@users
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HsqlDeque
public HsqlDeque()
size
public int size()
getFirst
public java.lang.Object getFirst()
throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
getLast
public java.lang.Object getLast()
throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
get
public java.lang.Object get(int i)
throws java.lang.IndexOutOfBoundsException
- Throws:
java.lang.IndexOutOfBoundsException
set
public java.lang.Object set(int i,
java.lang.Object o)
throws java.lang.IndexOutOfBoundsException
- Throws:
java.lang.IndexOutOfBoundsException
removeFirst
public java.lang.Object removeFirst()
throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
removeLast
public java.lang.Object removeLast()
throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
add
public boolean add(java.lang.Object o)
addLast
public boolean addLast(java.lang.Object o)
addFirst
public boolean addFirst(java.lang.Object o)
clear
public void clear()
isEmpty
public boolean isEmpty()
elements
public java.util.Enumeration elements()
Copyright © 2001 - 2002 HSQL Development Group. All Rights Reserved.