Package org.eclipse.mat.collect
Class QueueInt
- java.lang.Object
-
- org.eclipse.mat.collect.QueueInt
-
public class QueueInt extends java.lang.Object
A simple queue of ints- Since:
- 0.8
-
-
Constructor Summary
Constructors Constructor Description QueueInt(int capacity)
Create a queue of specified initial capacity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
get
public final int get()
Retrieve the next element from the queue.- Returns:
- the next element
-
size
public final int size()
The number of elements available for retrieval.- Returns:
- the size
-
put
public final void put(int x)
Add an element to the back of the queue.- Parameters:
x
- the element to add
-
-