|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrx.operators.OperationTake
public final class OperationTake
Returns an Observable that emits the first num items emitted by the source
Observable.
You can choose to pay attention only to the first num items emitted by an
Observable by using the take operation. This operation returns an Observable that will invoke a
subscribing Observer's onNext function a maximum of num times before
invoking onCompleted.
| Constructor Summary | |
|---|---|
OperationTake()
|
|
| Method Summary | ||
|---|---|---|
static
|
take(Observable<? extends T> items,
int num)
Returns a specified number of contiguous values from the start of an observable sequence. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationTake()
| Method Detail |
|---|
public static <T> Observable.OnSubscribeFunc<T> take(Observable<? extends T> items,
int num)
items - num -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||