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
-
Queue()
-
-
Queue(int)
-
-
Queue(Queue)
- Add all of items from the Queue into the another queue.
-
Add(Queue)
- Add all of items from the Queue into the another queue.
-
empty()
- Returns true if the queue is empty.
-
get()
- Gets an item from the front of the queue.
-
peek()
- Peeks at the front of the queue.
-
put(Object)
- Add all of items from the Queue into the another queue.
-
search(Object)
- Sees if an object is in the queue.
Queue
public Queue()
Queue
public Queue(int initialCapacity)
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.
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.
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.
get
public Object get()
- Gets an item from the front of the queue.
- Throws: EmptyQueueException
- If the queue is empty.
peek
public Object peek()
- Peeks at the front of the queue.
- Throws: EmptyQueueException
- If the queue is empty.
empty
public boolean empty()
- Returns true if the queue is empty.
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