|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectArQueue
public class ArQueue
realizza l'interfaccia Queue usando internamente un array riempito parzialmente.
| Constructor Summary | |
|---|---|
ArQueue()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
dequeue()
O(1) |
void |
enqueue(java.lang.Object obj)
in media O(1) |
java.lang.Object |
front()
O(1) |
boolean |
isEmpty()
O(1) |
void |
makeEmpty()
O(1) |
int |
size()
O(1) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArQueue()
| Method Detail |
|---|
public boolean isEmpty()
isEmpty in interface Containerpublic void makeEmpty()
makeEmpty in interface Containerpublic int size()
size in interface Containerpublic void enqueue(java.lang.Object obj)
enqueue in interface Queueobj - oggetto da inserire
public java.lang.Object front()
throws EmptyQueueException
front in interface QueueEmptyQueueException
public java.lang.Object dequeue()
throws EmptyQueueException
dequeue in interface QueueEmptyQueueException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||