|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mat.collect.QueueInt
public class QueueInt
A simple queue of ints
| Constructor Summary | |
|---|---|
QueueInt(int capacity)
Create a queue of specified initial capacity. |
|
| Method Summary | |
|---|---|
int |
get()
Retrieve the next element from the queue. |
void |
put(int x)
Add an element to the back of the queue. |
int |
size()
The number of elements available for retrieval. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueueInt(int capacity)
capacity - the initial capacity| Method Detail |
|---|
public final int get()
public final int size()
public final void put(int x)
x - the element to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||