Interface Queue<T>

All Superinterfaces:
Feed<T>, Iterable<T>
All Known Subinterfaces:
Deque<T>

public interface Queue<T> extends Feed<T>
First-in-first-out element feed.
Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> Queue<T>
    Returns new queue that is initially empty.
    void
    enqueue(T item)
    Places item at the bottom of the queue.

    Methods inherited from interface me.sbasalaev.staque.Feed

    clear, isEmpty, iterator, nonEmpty, peek, take

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Method Details

    • empty

      static <T> Queue<T> empty()
      Returns new queue that is initially empty.
    • enqueue

      void enqueue(T item)
      Places item at the bottom of the queue.