Class UniqueQueue<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.Deque<T>, java.util.List<T>, java.util.Queue<T>

    public class UniqueQueue<T>
    extends java.util.LinkedList<T>
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      UniqueQueue()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(T t)  
      boolean addAll​(java.util.Collection<? extends T> c)  
      T poll()  
      T pop()  
      • Methods inherited from class java.util.LinkedList

        add, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, pollFirst, pollLast, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
      • Methods inherited from class java.util.AbstractSequentialList

        iterator
      • Methods inherited from class java.util.AbstractList

        equals, hashCode, listIterator, removeRange, subList
      • Methods inherited from class java.util.AbstractCollection

        containsAll, isEmpty, removeAll, retainAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.util.Deque

        iterator
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
    • Constructor Detail

      • UniqueQueue

        public UniqueQueue()
    • Method Detail

      • addAll

        public boolean addAll​(java.util.Collection<? extends T> c)
        Specified by:
        addAll in interface java.util.Collection<T>
        Specified by:
        addAll in interface java.util.Deque<T>
        Specified by:
        addAll in interface java.util.List<T>
        Overrides:
        addAll in class java.util.LinkedList<T>
      • add

        public boolean add​(T t)
        Specified by:
        add in interface java.util.Collection<T>
        Specified by:
        add in interface java.util.Deque<T>
        Specified by:
        add in interface java.util.List<T>
        Specified by:
        add in interface java.util.Queue<T>
        Overrides:
        add in class java.util.LinkedList<T>
      • poll

        public T poll()
        Specified by:
        poll in interface java.util.Deque<T>
        Specified by:
        poll in interface java.util.Queue<T>
        Overrides:
        poll in class java.util.LinkedList<T>
      • pop

        public T pop()
        Specified by:
        pop in interface java.util.Deque<T>
        Overrides:
        pop in class java.util.LinkedList<T>