|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatastructures.Queue
public class Queue
Queue for integer tables.
Constructor Summary | |
---|---|
Queue(int max_size)
|
Method Summary | |
---|---|
int[] |
dequeue()
Get first element. |
void |
enqueue(int[] n)
Enqueue integer array. |
boolean |
is_empty()
Returns true if queue empty |
int |
size()
Returns the size of queue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Queue(int max_size)
Method Detail |
---|
public void enqueue(int[] n)
n
- new element (integer array).public boolean is_empty()
public int size()
public int[] dequeue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |