RxJava



rx.operators
Class OperatorToIterator

java.lang.Object
  extended by rx.operators.OperatorToIterator

public class OperatorToIterator
extends java.lang.Object

See Also:
https://github.com/Netflix/RxJava/issues/50

Constructor Summary
OperatorToIterator()
           
 
Method Summary
 void testToIterator()
           
 void testToIteratorWithException()
           
static
<T> java.util.Iterator<T>
toIterator(Observable<T> that)
          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

OperatorToIterator

public OperatorToIterator()
Method Detail

toIterator

public static <T> java.util.Iterator<T> toIterator(Observable<T> that)
Returns an iterator that iterates all values of the observable.

Type Parameters:
T - the type of source.
Parameters:
that - an observable sequence to get an iterator for.
Returns:
the iterator that could be used to iterate over the elements of the observable.

testToIterator

public void testToIterator()

testToIteratorWithException

public void testToIteratorWithException()