|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.javatest.util.Fifo
public class Fifo
A simple variable length first-in first-out queue.
| Constructor Summary | |
|---|---|
Fifo()
Create a buffer with a default initial size. |
|
Fifo(int initialSlots)
Create a buffer with a specified initial size. |
|
| Method Summary | |
|---|---|
void |
flush()
Flush all entries from the buffer. |
void |
insert(java.lang.Object obj)
Insert an entry into the buffer. |
boolean |
isEmpty()
Check if the buffer has an entries or not. |
java.lang.Object |
remove()
Remove an entry from the buffer if one is available. |
int |
size()
Return the number of entries currently in the fifo. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Fifo()
public Fifo(int initialSlots)
initialSlots - The number of initial slots in the buffer; the number of
slots required by the buffer will be expanded as required.| Method Detail |
|---|
public boolean isEmpty()
public int size()
public void insert(java.lang.Object obj)
obj - The object to be inserted. It must not be null.public java.lang.Object remove()
public void flush()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||