Interface RSDeque<T>

  • All Superinterfaces:
    java.lang.Iterable<T>
    All Known Subinterfaces:
    RSLinkDeque, RSNodeDeque

    public interface RSDeque<T>
    extends java.lang.Iterable<T>
    A doubly linked list
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addLast​(T t)
      Add a new element to the end of the deque
      void clear()
      clear the deque
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
    • Method Detail

      • addLast

        void addLast​(T t)
        Add a new element to the end of the deque
        Parameters:
        t - the element
      • clear

        void clear()
        clear the deque