biz.junginger.util
Class Queue

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended bybiz.junginger.util.Queue
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class Queue
extends java.util.Vector

Author:
Markus Junginger (c) 2003 by Markus Oliver Junginger. All rights reserved. http://www.junginger.biz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Queue()
           
Queue(java.util.Collection col)
           
 
Method Summary
 boolean add(java.lang.Object obj)
           
 void addElement(java.lang.Object obj)
           
 void addFirst(java.lang.Object obj)
           
 void addLast(java.lang.Object obj)
           
 java.lang.Object removeFirst()
           
 java.lang.Object removeLast()
           
 java.lang.Object waitForFirst()
           
 java.lang.Object waitForFirst(int millis)
           
 java.lang.Object waitForLast()
           
 java.lang.Object waitForLast(int millis)
           
 void waitPopulated()
           
 void waitPopulated(int millis)
           
 
Methods inherited from class java.util.Vector
add, addAll, addAll, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

Queue

public Queue()

Queue

public Queue(java.util.Collection col)
Method Detail

addFirst

public void addFirst(java.lang.Object obj)

add

public boolean add(java.lang.Object obj)

addLast

public void addLast(java.lang.Object obj)

addElement

public void addElement(java.lang.Object obj)

removeFirst

public java.lang.Object removeFirst()

removeLast

public java.lang.Object removeLast()

waitForFirst

public java.lang.Object waitForFirst(int millis)
                              throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

waitForLast

public java.lang.Object waitForLast(int millis)
                             throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

waitForFirst

public java.lang.Object waitForFirst()
                              throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

waitForLast

public java.lang.Object waitForLast()
                             throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

waitPopulated

public void waitPopulated()
                   throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

waitPopulated

public void waitPopulated(int millis)
                   throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException