Class LinkedTransferQueue.Itr

  • All Implemented Interfaces:
    java.util.Iterator<E>
    Enclosing class:
    LinkedTransferQueue<E>

    class LinkedTransferQueue.Itr
    extends java.lang.Object
    implements java.util.Iterator<E>
    Iterators. Basic strategy is to traverse list, treating non-data (i.e., request) nodes as terminating list. Once a valid data node is found, the item is cached so that the next call to next() will return it even if subsequently removed.
    • Constructor Detail

      • Itr

        Itr()
    • Method Detail

      • advance

        E advance()
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<E>
      • next

        public E next()
        Specified by:
        next in interface java.util.Iterator<E>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<E>