Class BlockingOperatorToIterator



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

    See Also:
    Issue #50
    • Method Detail

      • toIterator

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