|
|||||||||||
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
aa.util.Queue
This class defines the queue data type. It is a simple extension of the Linked List class to support syncrhonized method invocation.
History:
insertAll
method.
Nested Class Summary |
Nested classes inherited from class java.util.LinkedList |
|
Nested classes inherited from class java.util.AbstractList |
|
Field Summary |
Fields inherited from class java.util.LinkedList |
|
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
Queue()
Creates a queue instance. |
Method Summary | |
void |
insert(java.lang.Object p_object)
Inserts the sepcified element at the end of this queue. |
void |
insertAll(Queue p_queue)
Inserts all of the elements of the specified queue at the end of this queue. |
java.lang.Object |
remove()
Removes the first element from this queue, and returns the elemement that was removed from the list. |
Methods inherited from class java.util.LinkedList |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, 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, isEmpty, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
public Queue()
Method Detail |
public void insert(java.lang.Object p_object)
p_object
- the element to be inserted into this queue.public void insertAll(Queue p_queue)
p_queue
- all of the elements to be inserted into this queue.public java.lang.Object remove() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if this list is empty.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |