|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hdcookbook.grin.util.Queue
public class Queue
This class maintains a queue that avoids generating heap traffic.
Constructor Summary | |
---|---|
Queue(int capacity)
Create a queue. |
Method Summary | |
---|---|
void |
add(java.lang.Object el)
|
boolean |
isEmpty()
|
java.lang.Object |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Queue(int capacity)
Method Detail |
---|
public void add(java.lang.Object el)
public boolean isEmpty()
public java.lang.Object remove()
java.util.NoSuchElementException
- if isEmpty() is true
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |