|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.util.FastFiFo<x>
x - the element class to dump into the fifopublic class FastFiFo<x>
| Constructor Summary | |
|---|---|
FastFiFo(int n)
|
|
| Method Summary | |
|---|---|
int |
getFill()
|
x |
peek(int i)
peeks into the fifo from the beginning |
x[] |
peekArray()
peeks into the fifo from the beginning |
x |
pop()
pops the first to go |
x |
push(x back)
pushes an element into the back and returns the previous content of the cell |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FastFiFo(int n)
n - size of the fifo| Method Detail |
|---|
public x push(x back)
back - the element to push
public x pop()
public x peek(int i)
i - the index of the element to peek
public x[] peekArray()
public String toString()
toString in class ObjectObject.toString()public int getFill()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||