com.mchange.util.impl
Class CircularListQueue
java.lang.Object
com.mchange.util.impl.CircularListQueue
- All Implemented Interfaces:
- Queue, Cloneable
public class CircularListQueue
- extends Object
- implements Queue, Cloneable
CircularListQueue
public CircularListQueue()
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