Package rx.internal.operators
Class OperatorDoOnSubscribe<T>
- java.lang.Object
-
- rx.internal.operators.OperatorDoOnSubscribe<T>
-
- Type Parameters:
T
- The type of the elements in theObservable
that this operator modifies
- All Implemented Interfaces:
Func1<Subscriber<? super T>,Subscriber<? super T>>
,Function
,Observable.Operator<T,T>
public class OperatorDoOnSubscribe<T> extends java.lang.Object implements Observable.Operator<T,T>
This operator modifies anObservable
so a given action is invoked when theObservable
is subscribed.
-
-
Constructor Summary
Constructors Constructor Description OperatorDoOnSubscribe(Action0 subscribe)
Constructs an instance of the operator with the callback that gets invoked when the modified Observable is subscribed
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Subscriber<? super T>
call(Subscriber<? super T> child)
-
-
-
Field Detail
-
subscribe
private final Action0 subscribe
-
-
Constructor Detail
-
OperatorDoOnSubscribe
public OperatorDoOnSubscribe(Action0 subscribe)
Constructs an instance of the operator with the callback that gets invoked when the modified Observable is subscribed- Parameters:
subscribe
- the action that gets invoked when the modifiedObservable
is subscribed
-
-
Method Detail
-
call
public Subscriber<? super T> call(Subscriber<? super T> child)
- Specified by:
call
in interfaceFunc1<Subscriber<? super T>,Subscriber<? super T>>
-
-