org.openide.util
Class Queue<T>

java.lang.Object
  extended by org.openide.util.Queue<T>

Deprecated. Use BlockingQueue instead.

@Deprecated
public class Queue<T>
extends java.lang.Object

Queue of objects. When there is no object in the queue the process is suspended till some arrives. Implementation appears to be LIFO.

Author:
Jaroslav Tulach

Constructor Summary
Queue()
          Deprecated.  
 
Method Summary
 T get()
          Deprecated. Gets an object from the queue.
 void put(T o)
          Deprecated. Adds new item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Queue

public Queue()
Deprecated. 
Method Detail

put

public void put(T o)
Deprecated. 
Adds new item.

Parameters:
o - object to add

get

public T get()
Deprecated. 
Gets an object from the queue. If there is no such object the thread is suspended until some object arrives

Returns:
object from the queue