x - the element class to dump into the fifopublic class FastFiFo<x>
extends java.lang.Object
| Constructor and Description |
|---|
FastFiFo(int n) |
| Modifier and Type | Method and Description |
|---|---|
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
|
int |
size() |
java.lang.String |
toString() |
public x push(x back)
back - the element to pushpublic x pop()
public x peek(int i)
i - the index of the element to peekpublic x[] peekArray()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int getFill()
public int size()