|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.AbstractSequentialList
java.util.LinkedList
edu.ucsb.cs.jicos.utilities.Qu
public final class Qu
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
Qu()
|
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object object)
Add an object to the queue. |
java.lang.Object |
get()
Get the object at the head of the queue. |
boolean |
isEmpty()
Is the queue empty? |
java.lang.Object |
remove()
Remove an object according to the FIFO discipline. |
java.lang.String |
toString()
Returns a String representation of the object. |
| Methods inherited from class java.util.LinkedList |
|---|
add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, removeFirst, removeLast, set, size, toArray, toArray |
| Methods inherited from class java.util.AbstractSequentialList |
|---|
iterator |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public Qu()
| Method Detail |
|---|
public boolean add(java.lang.Object object)
add in interface edu.ucsb.cs.jicos.foundation.Qadd in interface java.util.Collectionadd in interface java.util.Listadd in class java.util.LinkedListobject - The object to be added to the queue.
public java.lang.Object get()
public java.lang.Object remove()
remove in interface edu.ucsb.cs.jicos.foundation.Qremove in interface java.util.Queueremove in class java.util.LinkedListpublic boolean isEmpty()
isEmpty in interface edu.ucsb.cs.jicos.foundation.QisEmpty in interface java.util.CollectionisEmpty in interface java.util.ListisEmpty in class java.util.AbstractCollectionpublic java.lang.String toString()
toString in class java.util.AbstractCollection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||