RxJava



rx.operators
Class OperationToIterator

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

public class OperationToIterator
extends java.lang.Object

Returns an Iterator that iterates over all items emitted by a specified Observable.

See Also:
Issue #50

Constructor Summary
OperationToIterator()
           
 
Method Summary
 void testToIterator()
           
 void testToIteratorWithException()
           
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

OperationToIterator

public OperationToIterator()
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.
Returns:
the iterator that could be used to iterate over the elements of the observable.

testToIterator

public void testToIterator()

testToIteratorWithException

public void testToIteratorWithException()