Class BoundedDeque<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>

    public class BoundedDeque<T>
    extends java.lang.Object
    implements java.lang.Iterable<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      BoundedDeque​(int max)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(T add)  
      java.util.concurrent.LinkedBlockingDeque<T> getDeque()
      Get a copy of the deque.
      T getLast()  
      java.util.Iterator<T> iterator()  
      void setDeque​(java.util.concurrent.LinkedBlockingDeque<T> deque)  
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • BoundedDeque

        public BoundedDeque​(int max)
    • Method Detail

      • size

        public int size()
        Returns:
        int
      • add

        public void add​(T add)
      • getLast

        public T getLast()
      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>
      • getDeque

        public java.util.concurrent.LinkedBlockingDeque<T> getDeque()
        Get a copy of the deque.
      • setDeque

        public void setDeque​(java.util.concurrent.LinkedBlockingDeque<T> deque)