org.apache.xindice.util
Class ObjectQueue
java.lang.Object
|
+--org.apache.xindice.util.ObjectQueue
- All Implemented Interfaces:
- java.io.Serializable
- public final class ObjectQueue
- extends java.lang.Object
- implements java.io.Serializable
ObjectQueue is a simple linked list implemention that can be used
for FIFO queuing. The benefit of ObjectQueue over Sun's Queue
implementation is that it is not an extension of ArrayList and doesn't
suffer from ArrayList's resizing performance limitations.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectQueue
public ObjectQueue()
add
public void add(java.lang.Object value)
remove
public java.lang.Object remove()
isEmpty
public boolean isEmpty()
size
public int size()
peek
public java.lang.Object peek()
clear
public void clear()
Copyright (c) 1999-2001 The Apache Software Foundation