Class BlockingOperatorToIterator


  • public final class BlockingOperatorToIterator
    extends java.lang.Object
    Returns an Iterator that iterates over all items emitted by a specified Observable.

    See Also:
    Issue #50
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.Iterator<T> toIterator​(Observable<? extends T> source)
      Returns an iterator that iterates all values of the observable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BlockingOperatorToIterator

        private BlockingOperatorToIterator()
    • Method Detail

      • toIterator

        public static <T> java.util.Iterator<T> toIterator​(Observable<? extends T> source)
        Returns an iterator that iterates all values of the observable.
        Type Parameters:
        T - the type of source.
        Parameters:
        source - the source Observable
        Returns:
        the iterator that could be used to iterate over the elements of the observable.