Interface CharQueue

All Known Implementing Classes:
ArrayCharQueue

public interface CharQueue
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    offer(char element)
    Add a char to the head of the queue.
    char
    Get a char from the head of the queue.
    int
    Get the current size of the queue.
  • Method Details

    • offer

      void offer(char element)
      Add a char to the head of the queue.
      Parameters:
      element - the char to be added.
    • poll

      char poll()
      Get a char from the head of the queue.
      Returns:
      the head of the queue
    • size

      int size()
      Get the current size of the queue.
      Returns:
      the size of the queue