org.graffiti.util
Class Queue

java.lang.Object
  extended by org.graffiti.util.Queue

public class Queue
extends Object

A simple queue.

Version:
$Revision: 5767 $

Constructor Summary
Queue()
          Constructs a new queue.
 
Method Summary
 void addLast(Object o)
          Adds the given object to the end of the queue.
 void clear()
           
 boolean isEmpty()
          Returns true, if the queue is empty.
 Object removeFirst()
          Returns and removes the first element in the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Queue

public Queue()
Constructs a new queue.

Method Detail

isEmpty

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

Returns:
true, if the queue is empty.

addLast

public void addLast(Object o)
Adds the given object to the end of the queue.

Parameters:
o - the object to add to the end of the queue.

clear

public void clear()
See Also:
Collection.clear()

removeFirst

public Object removeFirst()
Returns and removes the first element in the queue.

See Also:
LinkedList.removeFirst()


Generated at 2012-05-30 11:00:36 PM CEST