Class DeduplicatedQueue<T>


  • public class DeduplicatedQueue<T>
    extends Object
    A basic queue with duplicated elements ignored during add(Object).
    • Constructor Detail

      • DeduplicatedQueue

        public DeduplicatedQueue()
    • Method Detail

      • add

        public boolean add​(T t)
        Returns:
        true if this queue did not already contain the specified element
      • peek

        public T peek()
      • poll

        public T poll()
      • remove

        public void remove​(T t)
      • isEmpty

        public boolean isEmpty()