org.homeunix.thecave.moss.data
Class FIFOQueue<T>

java.lang.Object
  extended by org.homeunix.thecave.moss.data.FIFOQueue<T>

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

TODO: Implement the Queue interface

Author:
Wyatt Olson

Constructor Summary
FIFOQueue()
          Creates a new FIFO Queue
 
Method Summary
 void add(T arg0)
           
 T remove()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIFOQueue

public FIFOQueue()
Creates a new FIFO Queue

Method Detail

add

public void add(T arg0)
Parameters:
arg0 - The object to add to the tail of the queue

remove

public T remove()
Returns:
The head of the queue

size

public int size()
Returns:
The size of the queue