Class SingleIterator<E>

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

    public final class SingleIterator<E>
    extends BaseIterator<E>
    An Iterator to iterate the sole value of a Single.
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleIterator​(Single<E> value)
      Creates an Iterator which iterates the value of the given Single.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      E next()  
      • Methods inherited from class java.lang.Object

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

        forEachRemaining
    • Constructor Detail

      • SingleIterator

        public SingleIterator​(Single<E> value)
        Creates an Iterator which iterates the value of the given Single.
    • Method Detail

      • hasNext

        public boolean hasNext()
      • next

        public E next()