T - the type of the valuespublic final class Latest<T> extends ObservableToIterableAdapter<T,T>
Note that it is possible one doesn't receive the last value of a fixed-length observable sequence in case the last next() call is is quickly followed by a finish() event.
The returned iterator throws UnsupportedOperationException for its remove() method.
observable| Constructor and Description |
|---|
Latest(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 Latest(@Nonnull
Observable<? extends T> observable)
observable - the source sequence@Nonnull protected ObserverToIteratorSink<T,T> run(@Nonnull java.io.Closeable handle)
ObservableToIterableAdapterrun in class ObservableToIterableAdapter<T,T>handle - the closea handle