|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--asd_library.queue.Queue
Implementation of the abstract data type Queue
Constructor Summary | |
Queue()
|
Method Summary | |
java.lang.Object |
clone()
Returns a shallow copy of this Queue. |
java.lang.Object |
dequeue()
Retrieves the item from the queue head and removes it. |
void |
enqueue(java.lang.Object el)
Stores an item at the queue end. |
boolean |
equals(java.lang.Object q)
Compares the specified object with this queue for equality. |
java.lang.Object |
firstEl()
Retrieves the item from the queue head but doesn't remove it. |
boolean |
isEmpty()
Verifies if the queue is empty. |
java.util.ListIterator |
listIterator()
Returns a list-iterator of the elements in this queue (in proper sequence) |
java.lang.String |
toString()
Returns a string representation of the queue. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Queue()
Method Detail |
public void enqueue(java.lang.Object el)
enqueue
in interface Queue_adt
el
- object to store.public java.lang.Object dequeue()
dequeue
in interface Queue_adt
public java.lang.Object firstEl()
firstEl
in interface Queue_adt
public boolean isEmpty()
isEmpty
in interface Queue_adt
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object q)
equals
in class java.lang.Object
q
- the object to be compared for equality with this queue
public java.util.ListIterator listIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |