Package org.graffiti.util
Class Queue
java.lang.Object
org.graffiti.util.Queue
public class Queue extends Object
A simple queue.
- Version:
- $Revision: 1.5 $
-
Constructor Summary
Constructors Constructor Description Queue()
Constructs a new queue. -
Method Summary
-
Constructor Details
-
Queue
public Queue()Constructs a new queue.
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returnstrue
, if the queue is empty.- Returns:
true
, if the queue is empty.
-
addLast
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
Returns and removes the first element in the queue.- See Also:
LinkedList.removeFirst()
-