All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.hdf.util.Queue

java.lang.Object
   |
   +----java.util.Vector
           |
           +----ncsa.hdf.util.Queue

public class Queue
extends Vector

Constructor Index

 o Queue()
 o Queue(int)
 o Queue(Queue)
Add all of items from the Queue into the another queue.

Method Index

 o Add(Queue)
Add all of items from the Queue into the another queue.
 o empty()
Returns true if the queue is empty.
 o get()
Gets an item from the front of the queue.
 o peek()
Peeks at the front of the queue.
 o put(Object)
Add all of items from the Queue into the another queue.
 o search(Object)
Sees if an object is in the queue.

Constructors

 o Queue
 public Queue()
 o Queue
 public Queue(int initialCapacity)
 o Queue
 public Queue(Queue item)
Add all of items from the Queue into the another queue.

Parameters:
item - the item to be put into the queue.

Methods

 o put
 public Object put(Object item)
Add all of items from the Queue into the another queue.

Parameters:
item - the item to be put into the queue.
 o Add
 public void Add(Queue item)
Add all of items from the Queue into the another queue.

Parameters:
item - the item to be put into the queue.
 o get
 public Object get()
Gets an item from the front of the queue.

Throws: EmptyQueueException
If the queue is empty.
 o peek
 public Object peek()
Peeks at the front of the queue.

Throws: EmptyQueueException
If the queue is empty.
 o empty
 public boolean empty()
Returns true if the queue is empty.

 o search
 public int search(Object obj)
Sees if an object is in the queue.

Parameters:
obj - the desired object
Returns:
the distance from the front, or -1 if it is not found.

All Packages  Class Hierarchy  This Package  Previous  Next  Index