Package rx.internal.operators
Class OperatorTake<T>
- java.lang.Object
-
- rx.internal.operators.OperatorTake<T>
-
- Type Parameters:
T- the value type
- All Implemented Interfaces:
Func1<Subscriber<? super T>,Subscriber<? super T>>,Function,Observable.Operator<T,T>
public final class OperatorTake<T> extends java.lang.Object implements Observable.Operator<T,T>
AnObservablethat emits the firstnumitems emitted by the sourceObservable.
You can choose to pay attention only to the first
numitems emitted by anObservableby using thetakeoperator. This operator returns anObservablethat will invoke a subscriber'sonNextfunction a maximum ofnumtimes before invokingonCompleted.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intlimit
-
Constructor Summary
Constructors Constructor Description OperatorTake(int limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Subscriber<? super T>call(Subscriber<? super T> child)
-
-
-
Method Detail
-
call
public Subscriber<? super T> call(Subscriber<? super T> child)
- Specified by:
callin interfaceFunc1<Subscriber<? super T>,Subscriber<? super T>>
-
-