Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.util
Class Queue  view Queue download Queue.java

java.lang.Object
  extended bycom.flexstor.common.util.Queue

public class Queue
extends java.lang.Object

Implements a simple queue.

Version:
3.0

Field Summary
private  java.util.Vector queue
           
 
Constructor Summary
Queue()
           
 
Method Summary
 void clear()
          Removes all items from the queue.
 boolean isEmpty()
          Returns true if this queue is empty.
 java.lang.Object pop()
          Retrieves and removes an object from the start of the queue
 void push(java.lang.Object o)
          Adds an object to the end of the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queue

private java.util.Vector queue
Constructor Detail

Queue

public Queue()
Method Detail

push

public void push(java.lang.Object o)
Adds an object to the end of the queue.


pop

public java.lang.Object pop()
                     throws java.lang.ArrayIndexOutOfBoundsException
Retrieves and removes an object from the start of the queue


clear

public void clear()
Removes all items from the queue.


isEmpty

public boolean isEmpty()
Returns true if this queue is empty.