com.lti.utils.collections
Class Queue<T>

java.lang.Object
  extended by com.lti.utils.collections.Queue<T>

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

Implementation of a FIFO.

Author:
Ken Larson

Constructor Summary
Queue()
           
 
Method Summary
 T dequeue()
           
 void enqueue(T o)
           
 boolean isEmpty()
           
 T peek()
           
 void removeAllElements()
           
 int size()
           
 
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

size

public int size()

dequeue

public T dequeue()

peek

public T peek()

enqueue

public void enqueue(T o)

removeAllElements

public void removeAllElements()

isEmpty

public boolean isEmpty()