56
56
import rx .operators .OperationJoin ;
57
57
import rx .operators .OperationMergeDelayError ;
58
58
import rx .operators .OperationMergeMaxConcurrent ;
59
- import rx .operators .OperationMulticast ;
60
59
import rx .operators .OperationOnErrorResumeNextViaObservable ;
61
60
import rx .operators .OperationOnErrorReturn ;
62
61
import rx .operators .OperationOnExceptionResumeNextViaObservable ;
63
62
import rx .operators .OperationParallelMerge ;
64
- import rx .operators .OperationReplay ;
63
+ import rx .operators .OperatorReplay ;
65
64
import rx .operators .OperationSample ;
66
65
import rx .operators .OperationSequenceEqual ;
67
66
import rx .operators .OperationSkip ;
105
104
import rx .operators .OperatorMerge ;
106
105
import rx .operators .OperatorMergeMapPair ;
107
106
import rx .operators .OperatorMergeMapTransform ;
107
+ import rx .operators .OperatorMulticast ;
108
+ import rx .operators .OperatorMulticastSelector ;
108
109
import rx .operators .OperatorObserveOn ;
109
110
import rx .operators .OperatorOnErrorFlatMap ;
110
111
import rx .operators .OperatorOnErrorResumeNextViaFunction ;
@@ -4419,7 +4420,7 @@ public final <U, R> Observable<R> mergeMapIterable(Func1<? super T, ? extends It
4419
4420
public final <TIntermediate , TResult > Observable <TResult > multicast (
4420
4421
final Func0 <? extends Subject <? super T , ? extends TIntermediate >> subjectFactory ,
4421
4422
final Func1 <? super Observable <TIntermediate >, ? extends Observable <TResult >> selector ) {
4422
- return OperationMulticast . multicast ( this , subjectFactory , selector );
4423
+ return create ( new OperatorMulticastSelector < T , TIntermediate , TResult >( this , subjectFactory , selector ) );
4423
4424
}
4424
4425
4425
4426
/**
@@ -4436,7 +4437,7 @@ public final <TIntermediate, TResult> Observable<TResult> multicast(
4436
4437
* Observable.multicast()</a>
4437
4438
*/
4438
4439
public final <R > ConnectableObservable <R > multicast (Subject <? super T , ? extends R > subject ) {
4439
- return OperationMulticast . multicast (this , subject );
4440
+ return new OperatorMulticast < T , R > (this , subject );
4440
4441
}
4441
4442
4442
4443
/**
@@ -4641,7 +4642,7 @@ public final <R> Observable<R> parallel(final Func1<Observable<T>, Observable<R>
4641
4642
* @see <a href="https://github.com/Netflix/RxJava/wiki/Connectable-Observable-Operators#wiki-observablepublish-and-observablemulticast">RxJava Wiki: publish()</a>
4642
4643
*/
4643
4644
public final ConnectableObservable <T > publish () {
4644
- return OperationMulticast . multicast (this , PublishSubject .<T > create ());
4645
+ return new OperatorMulticast < T , T > (this , PublishSubject .<T > create ());
4645
4646
}
4646
4647
4647
4648
/**
@@ -4704,7 +4705,7 @@ public final Subject<T, T> call() {
4704
4705
* and starts with {@code initialValue}
4705
4706
*/
4706
4707
public final ConnectableObservable <T > publish (T initialValue ) {
4707
- return OperationMulticast . multicast (this , BehaviorSubject .<T > create (initialValue ));
4708
+ return new OperatorMulticast < T , T > (this , BehaviorSubject .<T > create (initialValue ));
4708
4709
}
4709
4710
4710
4711
/**
@@ -4716,7 +4717,7 @@ public final ConnectableObservable<T> publish(T initialValue) {
4716
4717
* @see <a href="https://github.com/Netflix/RxJava/wiki/Connectable-Observable-Operators#wiki-observablepublishlast">RxJava Wiki: publishLast()</a>
4717
4718
*/
4718
4719
public final ConnectableObservable <T > publishLast () {
4719
- return OperationMulticast . multicast (this , AsyncSubject .<T > create ());
4720
+ return new OperatorMulticast < T , T > (this , AsyncSubject .<T > create ());
4720
4721
}
4721
4722
4722
4723
/**
@@ -4879,7 +4880,7 @@ public final Observable<T> repeat(long count, Scheduler scheduler) {
4879
4880
* @see <a href="https://github.com/Netflix/RxJava/wiki/Connectable-Observable-Operators#wiki-observablereplay">RxJava Wiki: replay()</a>
4880
4881
*/
4881
4882
public final ConnectableObservable <T > replay () {
4882
- return OperationMulticast . multicast (this , ReplaySubject .<T > create ());
4883
+ return new OperatorMulticast < T , T > (this , ReplaySubject .<T > create ());
4883
4884
}
4884
4885
4885
4886
/**
@@ -4898,12 +4899,12 @@ public final ConnectableObservable<T> replay() {
4898
4899
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229653.aspx">MSDN: Observable.Replay</a>
4899
4900
*/
4900
4901
public final <R > Observable <R > replay (Func1 <? super Observable <T >, ? extends Observable <R >> selector ) {
4901
- return OperationMulticast . multicast (this , new Func0 <Subject <T , T >>() {
4902
+ return create ( new OperatorMulticastSelector < T , T , R > (this , new Func0 <Subject <T , T >>() {
4902
4903
@ Override
4903
4904
public final Subject <T , T > call () {
4904
4905
return ReplaySubject .create ();
4905
4906
}
4906
- }, selector );
4907
+ }, selector )) ;
4907
4908
}
4908
4909
4909
4910
/**
@@ -4927,12 +4928,12 @@ public final Subject<T, T> call() {
4927
4928
* @see <a href="http://msdn.microsoft.com/en-us/library/hh211675.aspx">MSDN: Observable.Replay</a>
4928
4929
*/
4929
4930
public final <R > Observable <R > replay (Func1 <? super Observable <T >, ? extends Observable <R >> selector , final int bufferSize ) {
4930
- return OperationMulticast . multicast (this , new Func0 <Subject <T , T >>() {
4931
+ return create ( new OperatorMulticastSelector < T , T , R > (this , new Func0 <Subject <T , T >>() {
4931
4932
@ Override
4932
4933
public final Subject <T , T > call () {
4933
- return OperationReplay .replayBuffered (bufferSize );
4934
+ return OperatorReplay .replayBuffered (bufferSize );
4934
4935
}
4935
- }, selector );
4936
+ }, selector )) ;
4936
4937
}
4937
4938
4938
4939
/**
@@ -4995,12 +4996,12 @@ public final <R> Observable<R> replay(Func1<? super Observable<T>, ? extends Obs
4995
4996
if (bufferSize < 0 ) {
4996
4997
throw new IllegalArgumentException ("bufferSize < 0" );
4997
4998
}
4998
- return OperationMulticast . multicast (this , new Func0 <Subject <T , T >>() {
4999
+ return create ( new OperatorMulticastSelector < T , T , R > (this , new Func0 <Subject <T , T >>() {
4999
5000
@ Override
5000
5001
public final Subject <T , T > call () {
5001
- return OperationReplay .replayWindowed (time , unit , bufferSize , scheduler );
5002
+ return OperatorReplay .replayWindowed (time , unit , bufferSize , scheduler );
5002
5003
}
5003
- }, selector );
5004
+ }, selector )) ;
5004
5005
}
5005
5006
5006
5007
/**
@@ -5026,12 +5027,12 @@ public final Subject<T, T> call() {
5026
5027
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229928.aspx">MSDN: Observable.Replay</a>
5027
5028
*/
5028
5029
public final <R > Observable <R > replay (Func1 <? super Observable <T >, ? extends Observable <R >> selector , final int bufferSize , final Scheduler scheduler ) {
5029
- return OperationMulticast . multicast (this , new Func0 <Subject <T , T >>() {
5030
+ return create ( new OperatorMulticastSelector < T , T , R > (this , new Func0 <Subject <T , T >>() {
5030
5031
@ Override
5031
5032
public final Subject <T , T > call () {
5032
- return OperationReplay .<T > createScheduledSubject (OperationReplay .<T > replayBuffered (bufferSize ), scheduler );
5033
+ return OperatorReplay .<T > createScheduledSubject (OperatorReplay .<T > replayBuffered (bufferSize ), scheduler );
5033
5034
}
5034
- }, selector );
5035
+ }, selector )) ;
5035
5036
}
5036
5037
5037
5038
/**
@@ -5085,12 +5086,12 @@ public final <R> Observable<R> replay(Func1<? super Observable<T>, ? extends Obs
5085
5086
* @see <a href="http://msdn.microsoft.com/en-us/library/hh244327.aspx">MSDN: Observable.Replay</a>
5086
5087
*/
5087
5088
public final <R > Observable <R > replay (Func1 <? super Observable <T >, ? extends Observable <R >> selector , final long time , final TimeUnit unit , final Scheduler scheduler ) {
5088
- return OperationMulticast . multicast (this , new Func0 <Subject <T , T >>() {
5089
+ return create ( new OperatorMulticastSelector < T , T , R > (this , new Func0 <Subject <T , T >>() {
5089
5090
@ Override
5090
5091
public final Subject <T , T > call () {
5091
- return OperationReplay .replayWindowed (time , unit , -1 , scheduler );
5092
+ return OperatorReplay .replayWindowed (time , unit , -1 , scheduler );
5092
5093
}
5093
- }, selector );
5094
+ }, selector )) ;
5094
5095
}
5095
5096
5096
5097
/**
@@ -5113,12 +5114,12 @@ public final Subject<T, T> call() {
5113
5114
* @see <a href="http://msdn.microsoft.com/en-us/library/hh211644.aspx">MSDN: Observable.Replay</a>
5114
5115
*/
5115
5116
public final <R > Observable <R > replay (Func1 <? super Observable <T >, ? extends Observable <R >> selector , final Scheduler scheduler ) {
5116
- return OperationMulticast . multicast (this , new Func0 <Subject <T , T >>() {
5117
+ return create ( new OperatorMulticastSelector < T , T , R > (this , new Func0 <Subject <T , T >>() {
5117
5118
@ Override
5118
5119
public final Subject <T , T > call () {
5119
- return OperationReplay .createScheduledSubject (ReplaySubject .<T > create (), scheduler );
5120
+ return OperatorReplay .createScheduledSubject (ReplaySubject .<T > create (), scheduler );
5120
5121
}
5121
- }, selector );
5122
+ }, selector )) ;
5122
5123
}
5123
5124
5124
5125
/**
@@ -5135,7 +5136,7 @@ public final Subject<T, T> call() {
5135
5136
* @see <a href="http://msdn.microsoft.com/en-us/library/hh211976.aspx">MSDN: Observable.Replay</a>
5136
5137
*/
5137
5138
public final ConnectableObservable <T > replay (int bufferSize ) {
5138
- return OperationMulticast . multicast (this , OperationReplay .<T > replayBuffered (bufferSize ));
5139
+ return new OperatorMulticast < T , T > (this , OperatorReplay .<T > replayBuffered (bufferSize ));
5139
5140
}
5140
5141
5141
5142
/**
@@ -5184,7 +5185,7 @@ public final ConnectableObservable<T> replay(int bufferSize, long time, TimeUnit
5184
5185
if (bufferSize < 0 ) {
5185
5186
throw new IllegalArgumentException ("bufferSize < 0" );
5186
5187
}
5187
- return OperationMulticast . multicast (this , OperationReplay .<T > replayWindowed (time , unit , bufferSize , scheduler ));
5188
+ return new OperatorMulticast < T , T > (this , OperatorReplay .<T > replayWindowed (time , unit , bufferSize , scheduler ));
5188
5189
}
5189
5190
5190
5191
/**
@@ -5203,9 +5204,9 @@ public final ConnectableObservable<T> replay(int bufferSize, long time, TimeUnit
5203
5204
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229814.aspx">MSDN: Observable.Replay</a>
5204
5205
*/
5205
5206
public final ConnectableObservable <T > replay (int bufferSize , Scheduler scheduler ) {
5206
- return OperationMulticast . multicast (this ,
5207
- OperationReplay .createScheduledSubject (
5208
- OperationReplay .<T > replayBuffered (bufferSize ), scheduler ));
5207
+ return new OperatorMulticast < T , T > (this ,
5208
+ OperatorReplay .createScheduledSubject (
5209
+ OperatorReplay .<T > replayBuffered (bufferSize ), scheduler ));
5209
5210
}
5210
5211
5211
5212
/**
@@ -5245,7 +5246,7 @@ public final ConnectableObservable<T> replay(long time, TimeUnit unit) {
5245
5246
* @see <a href="http://msdn.microsoft.com/en-us/library/hh211811.aspx">MSDN: Observable.Replay</a>
5246
5247
*/
5247
5248
public final ConnectableObservable <T > replay (long time , TimeUnit unit , Scheduler scheduler ) {
5248
- return OperationMulticast . multicast (this , OperationReplay .<T > replayWindowed (time , unit , -1 , scheduler ));
5249
+ return new OperatorMulticast < T , T > (this , OperatorReplay .<T > replayWindowed (time , unit , -1 , scheduler ));
5249
5250
}
5250
5251
5251
5252
/**
@@ -5262,7 +5263,7 @@ public final ConnectableObservable<T> replay(long time, TimeUnit unit, Scheduler
5262
5263
* @see <a href="http://msdn.microsoft.com/en-us/library/hh211699.aspx">MSDN: Observable.Replay</a>
5263
5264
*/
5264
5265
public final ConnectableObservable <T > replay (Scheduler scheduler ) {
5265
- return OperationMulticast . multicast (this , OperationReplay .createScheduledSubject (ReplaySubject .<T > create (), scheduler ));
5266
+ return new OperatorMulticast < T , T > (this , OperatorReplay .createScheduledSubject (ReplaySubject .<T > create (), scheduler ));
5266
5267
}
5267
5268
5268
5269
/**
0 commit comments