pipe.dataLayer.calculations
Class Queue

java.lang.Object
  extended by pipe.dataLayer.calculations.Queue

public class Queue
extends java.lang.Object


Constructor Summary
Queue()
           
 
Method Summary
 java.lang.Object dequeue()
          dequeue() Removes an object from the FRONT of the queue.
 void enqueue(java.lang.Object object)
          enqueue() Adds an object to the END of the queue.
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Queue

public Queue()
Method Detail

enqueue

public void enqueue(java.lang.Object object)
enqueue() Adds an object to the END of the queue.

Parameters:
object - The object to be queued

dequeue

public java.lang.Object dequeue()
dequeue() Removes an object from the FRONT of the queue.

Returns:
The object removed from the queue

isEmpty

public boolean isEmpty()