Class TopologicalOrderIterator.LinkedListQueue<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>
    Enclosing class:
    TopologicalOrderIterator<V,​E>

    private static class TopologicalOrderIterator.LinkedListQueue<T>
    extends java.util.LinkedList<T>
    implements java.util.Queue<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LinkedListQueue()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T element()  
      boolean offer​(T o)  
      T peek()  
      T poll()  
      T remove()  
      • Methods inherited from class java.util.LinkedList

        add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offerFirst, offerLast, peekFirst, peekLast, pollFirst, pollLast, pop, push, 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

      • LinkedListQueue

        private LinkedListQueue()
    • Method Detail

      • element

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

        public boolean offer​(T o)
        Specified by:
        offer in interface java.util.Deque<T>
        Specified by:
        offer in interface java.util.Queue<T>
        Overrides:
        offer in class java.util.LinkedList<T>
      • peek

        public T peek()
        Specified by:
        peek in interface java.util.Deque<T>
        Specified by:
        peek in interface java.util.Queue<T>
        Overrides:
        peek 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>
      • remove

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