Class Queue

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

public class Queue
extends Object
A simple queue.
Version:
$Revision: 1.5 $
  • Constructor Details

    • Queue

      public Queue()
      Constructs a new queue.
  • Method Details

    • 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()