|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectQueueByStacks
public class QueueByStacks
realizza una coda, usando sue pile.
| Constructor Summary | |
|---|---|
QueueByStacks()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
dequeue()
estrae l'oggetto dalla coda |
void |
enqueue(java.lang.Object obj)
inserisce un oggetto nella coda |
java.lang.Object |
front()
ispeziona l'oggetto in fronte alla pila |
boolean |
isEmpty()
|
void |
makeEmpty()
|
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueueByStacks()
| 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)
Queue
enqueue in interface Queueobj - oggetto da inserire
public java.lang.Object front()
throws EmptyQueueException
Queue
front in interface QueueEmptyQueueException
public java.lang.Object dequeue()
throws EmptyQueueException
Queue
dequeue in interface QueueEmptyQueueException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||