anon.tor
Class CellQueue

java.lang.Object
  extended by anon.tor.CellQueue

final class CellQueue
extends java.lang.Object


Nested Class Summary
(package private)  class CellQueue.CellQueueEntry
           
 
Field Summary
private  CellQueue.CellQueueEntry m_firstEntry
           
private  CellQueue.CellQueueEntry m_lastEntry
           
 
Constructor Summary
CellQueue()
          Constructor for the cellqueue
 
Method Summary
 void addElement(Cell c)
          Adds a cell to the cellqueue
 boolean isEmpty()
          returns if the queue contains an element
 Cell removeElement()
          returns the first element of the queue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_firstEntry

private CellQueue.CellQueueEntry m_firstEntry

m_lastEntry

private CellQueue.CellQueueEntry m_lastEntry
Constructor Detail

CellQueue

public CellQueue()
Constructor for the cellqueue

Method Detail

addElement

public void addElement(Cell c)
Adds a cell to the cellqueue

Parameters:
c - Cell

removeElement

public Cell removeElement()
returns the first element of the queue

Returns:
if there is an element : first element else : null

isEmpty

public boolean isEmpty()
returns if the queue contains an element

Returns:
true if there is an element, false if not