Interface ILcdQueue

All Known Implementing Classes:
TLcdQueue

public interface ILcdQueue
This interface defines a set of methods for implementing a queue.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets and removes the first element from the queue.
    void
    enqueue(Object aObject)
    Adds a given object to the queue.
    boolean
    Returns true if the queue is empty, false otherwise.
  • Method Details

    • isEmpty

      boolean isEmpty()
      Returns true if the queue is empty, false otherwise.
      Returns:
      true if the queue is empty, false otherwise.
    • enqueue

      void enqueue(Object aObject)
      Adds a given object to the queue.
      Parameters:
      aObject - the Object to be added to the queue.
    • dequeue

      Object dequeue()
      Gets and removes the first element from the queue.
      Returns:
      the first element.