|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.editors.views.profiles.ArrayQueue
public class ArrayQueue
| Nested Class Summary | |
|---|---|
class |
ArrayQueue.UnderflowException
|
| Constructor Summary | |
|---|---|
ArrayQueue()
Construct the queue. |
|
| Method Summary | |
|---|---|
java.lang.Object |
dequeue()
Return and remove the least recently inserted item from the queue. |
void |
enqueue(java.lang.Object x)
Insert a new item into the queue. |
java.lang.Object |
getFront()
Get the least recently inserted item in the queue. |
boolean |
isEmpty()
Test if the queue is logically empty. |
void |
makeEmpty()
Make the queue logically empty. |
int |
size()
size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayQueue()
| Method Detail |
|---|
public boolean isEmpty()
isEmpty in interface IQueuepublic int size()
IQueue
size in interface IQueueIQueue.size()public void makeEmpty()
makeEmpty in interface IQueuepublic java.lang.Object dequeue()
dequeue in interface IQueueArrayQueue.UnderflowException - if the queue is empty.public java.lang.Object getFront()
getFront in interface IQueueArrayQueue.UnderflowException - if the queue is empty.public void enqueue(java.lang.Object x)
enqueue in interface IQueuex - the item to insert.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||