Xindice API
version 1.1

org.apache.xindice.util
Class ObjectQueue

java.lang.Object
  |
  +--org.apache.xindice.util.ObjectQueue
All Implemented Interfaces:
Serializable

public final class ObjectQueue
extends Object
implements 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.

Version:
$Revision: 511426 $, $Date: 2007-02-24 22:25:02 -0500 (Sat, 24 Feb 2007) $
See Also:
Serialized Form

Constructor Summary
ObjectQueue()
           
 
Method Summary
 void add(Object value)
           
 void clear()
           
 boolean isEmpty()
           
 Object peek()
           
 Object remove()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectQueue

public ObjectQueue()
Method Detail

add

public void add(Object value)

remove

public Object remove()

isEmpty

public boolean isEmpty()

size

public int size()

peek

public Object peek()

clear

public void clear()

Xindice API
version 1.1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.