39
39
import rx .operators .OperationAverage ;
40
40
import rx .operators .OperationBuffer ;
41
41
import rx .operators .OperationCache ;
42
- import rx .operators .OperationCast ;
42
+ import rx .operators .OperatorCast ;
43
43
import rx .operators .OperationCombineLatest ;
44
44
import rx .operators .OperationConcat ;
45
45
import rx .operators .OperationDebounce ;
60
60
import rx .operators .OperationInterval ;
61
61
import rx .operators .OperationJoin ;
62
62
import rx .operators .OperationJoinPatterns ;
63
- import rx .operators .OperationMap ;
63
+ import rx .operators .OperatorMap ;
64
64
import rx .operators .OperationMaterialize ;
65
65
import rx .operators .OperationMerge ;
66
66
import rx .operators .OperationMergeDelayError ;
95
95
import rx .operators .OperationTimeInterval ;
96
96
import rx .operators .OperationTimeout ;
97
97
import rx .operators .OperationTimer ;
98
- import rx .operators .OperationTimestamp ;
98
+ import rx .operators .OperatorTimestamp ;
99
99
import rx .operators .OperationToMap ;
100
100
import rx .operators .OperationToMultimap ;
101
101
import rx .operators .OperationToObservableFuture ;
@@ -4043,7 +4043,7 @@ public final Observable<T> cache() {
4043
4043
* @see <a href="http://msdn.microsoft.com/en-us/library/hh211842.aspx">MSDN: Observable.Cast</a>
4044
4044
*/
4045
4045
public final <R > Observable <R > cast (final Class <R > klass ) {
4046
- return create ( OperationCast . cast ( this , klass ));
4046
+ return bind ( new OperatorCast < T , R >( klass ));
4047
4047
}
4048
4048
4049
4049
/**
@@ -5061,7 +5061,7 @@ public final Long call(Long t1, T t2) {
5061
5061
* @see <a href="http://msdn.microsoft.com/en-us/library/hh244306.aspx">MSDN: Observable.Select</a>
5062
5062
*/
5063
5063
public final <R > Observable <R > map (Func1 <? super T , ? extends R > func ) {
5064
- return create ( OperationMap . map ( this , func ));
5064
+ return bind ( new OperatorMap < T , R >( func ));
5065
5065
}
5066
5066
5067
5067
/**
@@ -5089,6 +5089,7 @@ public final <R> Observable<R> mapMany(Func1<? super T, ? extends Observable<? e
5089
5089
}
5090
5090
5091
5091
/**
5092
+ <<<<<<< HEAD
5092
5093
* Returns an Observable that applies the specified function to each item emitted by an
5093
5094
* Observable and emits the results of these function applications.
5094
5095
* <p>
@@ -5111,6 +5112,10 @@ public final <R> Observable<R> mapWithIndex(Func2<? super T, Integer, ? extends
5111
5112
/**
5112
5113
* Turns all of the emissions and notifications from a source Observable into emissions marked
5113
5114
* with their original types within {@link Notification} objects.
5115
+ =======
5116
+ * Turns all of the emissions and notifications from a source Observable
5117
+ * into emissions marked with their original types within {@link Notification} objects.
5118
+ >>>>>>> Bind implementation of Map, Cast, Timestamp
5114
5119
* <p>
5115
5120
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/materialize.png">
5116
5121
*
@@ -8157,7 +8162,7 @@ public final Observable<T> timeout(long timeout, TimeUnit timeUnit, Scheduler sc
8157
8162
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229003.aspx">MSDN: Observable.Timestamp</a>
8158
8163
*/
8159
8164
public final Observable <Timestamped <T >> timestamp () {
8160
- return create ( OperationTimestamp . timestamp ( this ));
8165
+ return timestamp ( Schedulers . immediate ( ));
8161
8166
}
8162
8167
8163
8168
/**
@@ -8174,7 +8179,7 @@ public final Observable<Timestamped<T>> timestamp() {
8174
8179
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229003.aspx">MSDN: Observable.Timestamp</a>
8175
8180
*/
8176
8181
public final Observable <Timestamped <T >> timestamp (Scheduler scheduler ) {
8177
- return create ( OperationTimestamp . timestamp ( this , scheduler ));
8182
+ return bind ( new OperatorTimestamp < T >( scheduler ));
8178
8183
}
8179
8184
8180
8185
/**
0 commit comments