|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.util.Queue
public class Queue
A unbounded circular queue.
Constructor Summary | |
---|---|
Queue()
Construct a new, empty queue. |
Method Summary | |
---|---|
int |
capacity()
Returns the capacity of this queue. |
void |
clear()
Clears this queue. |
Object |
first()
Returns the first element of the queue. |
Object |
get(int idx)
|
boolean |
isEmpty()
Returns true if the queue is empty. |
Object |
last()
|
Object |
pop()
Dequeues from this queue. |
void |
push(Object obj)
Enqueue into this queue. |
int |
size()
Returns the number of elements in the queue. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Queue()
Method Detail |
---|
public int capacity()
public void clear()
public Object pop()
null
, if this queue is empty or the element is
really null
.public void push(Object obj)
public Object first()
null
, if the queue is empty, or the element is
really null
.public Object last()
public Object get(int idx)
public boolean isEmpty()
true
if the queue is empty.
public int size()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |