T - the element typepublic static class Take.Last<T> extends java.lang.Object implements Observable<T>
count
elements from the source observable.| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected Observable<? extends T> |
source |
| Constructor and Description |
|---|
Last(Observable<? extends T> source,
int count)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super T> observer)
Registers an observer for the notification of Ts.
|
protected final Observable<? extends T> source
protected final int count
public Last(Observable<? extends T> source, int count)
source - the source of the elementscount - the number elements to return@Nonnull
public java.io.Closeable register(@Nonnull
Observer<? super T> observer)
Observableregister in interface Observable<T>observer - the observer of Ts or any supertype of it