x
- the element class to dump into the fifopublic class FastFiFo<x> extends 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() |
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 String toString()
toString
in class Object
Object.toString()
public int getFill()
public int size()
Copyright © 2018. All rights reserved.