com.mchange.util.impl
Class CircularListQueue

java.lang.Object
  extended by com.mchange.util.impl.CircularListQueue
All Implemented Interfaces:
Queue, Cloneable

public class CircularListQueue
extends Object
implements Queue, Cloneable


Constructor Summary
CircularListQueue()
           
 
Method Summary
 Object clone()
          Returns a shallow copy.
 Object dequeue()
           
 void enqueue(Object obj)
           
 boolean hasMoreElements()
           
 Object peek()
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircularListQueue

public CircularListQueue()
Method Detail

size

public int size()
Specified by:
size in interface Queue

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Queue

enqueue

public void enqueue(Object obj)
Specified by:
enqueue in interface Queue

peek

public Object peek()
Specified by:
peek in interface Queue

dequeue

public Object dequeue()
Specified by:
dequeue in interface Queue

clone

public Object clone()
Returns a shallow copy. The queue is cloned, but not the elements within it.

Specified by:
clone in interface Queue
Overrides:
clone in class Object