Class IntermediateFutureIterator<E>

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

    public class IntermediateFutureIterator<E>
    extends java.lang.Object
    implements java.util.Iterator<E>
    Helper class for iterating over the results of an intermediate future. Uses a suspendable for realizing blocking operations.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Check for more results.
      E next()
      Get next result.
      void remove()
      Not supported.
      • Methods inherited from class java.lang.Object

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

        forEachRemaining
    • Constructor Detail

      • IntermediateFutureIterator

        public IntermediateFutureIterator​(IIntermediateFuture<E> fut)
        Create an intermediate future iterator.
    • Method Detail

      • hasNext

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

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

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