Class BlockingOperatorToIterator

java.lang.Object
rx.internal.operators.BlockingOperatorToIterator

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

See Also:
  • Constructor Details

    • BlockingOperatorToIterator

      private BlockingOperatorToIterator()
  • Method Details

    • 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.
      Parameters:
      source - the source Observable
      Returns:
      the iterator that could be used to iterate over the elements of the observable.