count items emitted by the source Observable.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Subscriber |
| count | back to summary |
|---|---|
| pack-priv final int count | |
| OperatorTakeLast | back to summary |
|---|---|
| public OperatorTakeLast(int count) | |
| call | back to summary |
|---|---|
| public Subscriber Implements rx.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Subscriber | |
| pack-priv final int | |
| pack-priv final ArrayDeque | |
| pack-priv final AtomicLong |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | |
| public void | onCompleted()
Implements rx. Observable has finished sending push-based notifications.
|
| public void | onError(Throwable
the exception encountered by the Observable e)Implements rx. Observable has experienced an error condition.
|
| public void | onNext(T
the item emitted by the Observable t)Implements rx. |
| pack-priv void |
| actual | back to summary |
|---|---|
| pack-priv final Subscriber<? super T> actual | |
| count | back to summary |
|---|---|
| pack-priv final int count | |
| queue | back to summary |
|---|---|
| pack-priv final ArrayDeque<Object> queue | |
| requested | back to summary |
|---|---|
| pack-priv final AtomicLong requested Hides rx. | |
| TakeLastSubscriber | back to summary |
|---|---|
| public TakeLastSubscriber(Subscriber<? super T> actual, int count) | |
| call | back to summary |
|---|---|
| public T call(Object t) Implements rx.
| |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Implements rx. Doc from rx. Notifies the Observer that the
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements rx. Doc from rx. Notifies the Observer that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The
| |
| requestMore | back to summary |
|---|---|
| pack-priv void requestMore(long n) | |