T - the element type to iteratepublic final class ToIterable<T> extends ObservableToIterableAdapter<T,T>
The resulting iterable does not support the remove() method.
observable| Constructor and Description |
|---|
ToIterable(Observable<? extends T> observable)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ObserverToIteratorSink<T,T> |
run(java.io.Closeable handle)
The factory method to return an iterator and hand over the close handle
to the original registration to the source.
|
iteratorpublic ToIterable(@Nonnull
Observable<? extends T> observable)
observable - the observable to convert@Nonnull protected ObserverToIteratorSink<T,T> run(@Nonnull java.io.Closeable handle)
ObservableToIterableAdapterrun in class ObservableToIterableAdapter<T,T>handle - the closea handle