com.exponto.util
Class FifoQueue
java.lang.Object
com.exponto.util.FifoQueue
- public class FifoQueue
- extends java.lang.Object
A very simple First In First Out (FIFO) queue for storing a
number of objects.
The size of the list is fixed when the
instance of the class is created.
"null" objects are allowed, but the queue maybe created with an
initial value.
- Author:
- ttranu
Constructor Summary |
FifoQueue(int size)
|
FifoQueue(int size,
java.lang.Object initialValue)
|
Method Summary |
java.lang.Object |
fetchAndStore(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FifoQueue
public FifoQueue(int size)
FifoQueue
public FifoQueue(int size,
java.lang.Object initialValue)
fetchAndStore
public java.lang.Object fetchAndStore(java.lang.Object obj)
Copyright © 2004 Kaare Ranum