@@ -849,7 +849,9 @@ public static <T> Observable<T> from(T t1) {
849
849
* resulting Observable
850
850
* @return an Observable that emits each item
851
851
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#from">RxJava Wiki: from()</a>
852
+ * @deprecated Use {@link #from(Iterable)} instead such as {@code from(Arrays.asList(t1))}
852
853
*/
854
+ @ Deprecated
853
855
@ SuppressWarnings ("unchecked" )
854
856
// suppress unchecked because we are using varargs inside the method
855
857
public static <T > Observable <T > from (T t1 , T t2 ) {
@@ -873,7 +875,9 @@ public static <T> Observable<T> from(T t1, T t2) {
873
875
* resulting Observable
874
876
* @return an Observable that emits each item
875
877
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#from">RxJava Wiki: from()</a>
878
+ * @deprecated Use {@link #from(Iterable)} instead such as {@code from(Arrays.asList(t1))}.
876
879
*/
880
+ @ Deprecated
877
881
@ SuppressWarnings ("unchecked" )
878
882
// suppress unchecked because we are using varargs inside the method
879
883
public static <T > Observable <T > from (T t1 , T t2 , T t3 ) {
@@ -898,7 +902,9 @@ public static <T> Observable<T> from(T t1, T t2, T t3) {
898
902
* resulting Observable
899
903
* @return an Observable that emits each item
900
904
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#from">RxJava Wiki: from()</a>
905
+ * @deprecated Use {@link #from(Iterable)} instead such as {@code from(Arrays.asList(t1))}.
901
906
*/
907
+ @ Deprecated
902
908
@ SuppressWarnings ("unchecked" )
903
909
// suppress unchecked because we are using varargs inside the method
904
910
public static <T > Observable <T > from (T t1 , T t2 , T t3 , T t4 ) {
@@ -924,7 +930,9 @@ public static <T> Observable<T> from(T t1, T t2, T t3, T t4) {
924
930
* resulting Observable
925
931
* @return an Observable that emits each item
926
932
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#from">RxJava Wiki: from()</a>
933
+ * @deprecated Use {@link #from(Iterable)} instead such as {@code from(Arrays.asList(t1))}.
927
934
*/
935
+ @ Deprecated
928
936
@ SuppressWarnings ("unchecked" )
929
937
// suppress unchecked because we are using varargs inside the method
930
938
public static <T > Observable <T > from (T t1 , T t2 , T t3 , T t4 , T t5 ) {
@@ -951,7 +959,9 @@ public static <T> Observable<T> from(T t1, T t2, T t3, T t4, T t5) {
951
959
* resulting Observable
952
960
* @return an Observable that emits each item
953
961
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#from">RxJava Wiki: from()</a>
962
+ * @deprecated Use {@link #from(Iterable)} instead such as {@code from(Arrays.asList(t1))}.
954
963
*/
964
+ @ Deprecated
955
965
@ SuppressWarnings ("unchecked" )
956
966
// suppress unchecked because we are using varargs inside the method
957
967
public static <T > Observable <T > from (T t1 , T t2 , T t3 , T t4 , T t5 , T t6 ) {
@@ -979,7 +989,9 @@ public static <T> Observable<T> from(T t1, T t2, T t3, T t4, T t5, T t6) {
979
989
* resulting Observable
980
990
* @return an Observable that emits each item
981
991
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#from">RxJava Wiki: from()</a>
992
+ * @deprecated Use {@link #from(Iterable)} instead such as {@code from(Arrays.asList(t1))}.
982
993
*/
994
+ @ Deprecated
983
995
@ SuppressWarnings ("unchecked" )
984
996
// suppress unchecked because we are using varargs inside the method
985
997
public static <T > Observable <T > from (T t1 , T t2 , T t3 , T t4 , T t5 , T t6 , T t7 ) {
@@ -1008,7 +1020,9 @@ public static <T> Observable<T> from(T t1, T t2, T t3, T t4, T t5, T t6, T t7) {
1008
1020
* resulting Observable
1009
1021
* @return an Observable that emits each item
1010
1022
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#from">RxJava Wiki: from()</a>
1023
+ * @deprecated Use {@link #from(Iterable)} instead such as {@code from(Arrays.asList(t1))}.
1011
1024
*/
1025
+ @ Deprecated
1012
1026
@ SuppressWarnings ("unchecked" )
1013
1027
// suppress unchecked because we are using varargs inside the method
1014
1028
public static <T > Observable <T > from (T t1 , T t2 , T t3 , T t4 , T t5 , T t6 , T t7 , T t8 ) {
@@ -1038,7 +1052,9 @@ public static <T> Observable<T> from(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T
1038
1052
* resulting Observable
1039
1053
* @return an Observable that emits each item
1040
1054
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#from">RxJava Wiki: from()</a>
1055
+ * @deprecated Use {@link #from(Iterable)} instead such as {@code from(Arrays.asList(t1))}.
1041
1056
*/
1057
+ @ Deprecated
1042
1058
@ SuppressWarnings ("unchecked" )
1043
1059
// suppress unchecked because we are using varargs inside the method
1044
1060
public static <T > Observable <T > from (T t1 , T t2 , T t3 , T t4 , T t5 , T t6 , T t7 , T t8 , T t9 ) {
@@ -1064,7 +1080,9 @@ public static <T> Observable<T> from(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T
1064
1080
* resulting Observable
1065
1081
* @return an Observable that emits each item
1066
1082
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#from">RxJava Wiki: from()</a>
1083
+ * @deprecated Use {@link #from(Iterable)} instead such as {@code from(Arrays.asList(t1))}.
1067
1084
*/
1085
+ @ Deprecated
1068
1086
@ SuppressWarnings ("unchecked" )
1069
1087
// suppress unchecked because we are using varargs inside the method
1070
1088
public static <T > Observable <T > from (T t1 , T t2 , T t3 , T t4 , T t5 , T t6 , T t7 , T t8 , T t9 , T t10 ) {
@@ -1175,7 +1193,9 @@ public static <T> Observable<T> defer(Func0<? extends Observable<? extends T>> o
1175
1193
* @param <T> the type of that item
1176
1194
* @return an Observable that emits a single item and then completes
1177
1195
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#just">RxJava Wiki: just()</a>
1196
+ * @deprecated Use {@link #from(T)}
1178
1197
*/
1198
+ @ Deprecated
1179
1199
public static <T > Observable <T > just (T value ) {
1180
1200
return from (Arrays .asList ((value )));
1181
1201
}
@@ -1194,7 +1214,9 @@ public static <T> Observable<T> just(T value) {
1194
1214
* @return an Observable that emits a single item and then completes, on a
1195
1215
* specified scheduler
1196
1216
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#just">RxJava Wiki: just()</a>
1217
+ * @deprecated Use {@link #from(T)}
1197
1218
*/
1219
+ @ Deprecated
1198
1220
public static <T > Observable <T > just (T value , Scheduler scheduler ) {
1199
1221
return from (Arrays .asList ((value )), scheduler );
1200
1222
}
@@ -3898,6 +3920,7 @@ public <R> Observable<R> switchMap(Func1<? super T, ? extends Observable<? exten
3898
3920
* @see <a href="https://github.com/Netflix/RxJava/wiki/Filtering-Observables#filter-or-where">RxJava Wiki: where()</a>
3899
3921
* @see #filter(Func1)
3900
3922
*/
3923
+ @ Deprecated
3901
3924
public Observable <T > where (Func1 <? super T , Boolean > predicate ) {
3902
3925
return filter (predicate );
3903
3926
}
@@ -3935,6 +3958,7 @@ public <R> Observable<R> map(Func1<? super T, ? extends R> func) {
3935
3958
* @see <a href="http://msdn.microsoft.com/en-us/library/hh244311.aspx">MSDN: Observable.Select</a>
3936
3959
* @deprecated just use zip with {@link Observable#range(int)}
3937
3960
*/
3961
+ @ Deprecated
3938
3962
public <R > Observable <R > mapWithIndex (Func2 <? super T , Integer , ? extends R > func ) {
3939
3963
return create (OperationMap .mapWithIndex (this , func ));
3940
3964
}
@@ -3959,6 +3983,7 @@ public <R> Observable<R> mapWithIndex(Func2<? super T, Integer, ? extends R> fun
3959
3983
* @see #flatMap(Func1)
3960
3984
* @deprecated
3961
3985
*/
3986
+ @ Deprecated
3962
3987
public <R > Observable <R > mapMany (Func1 <? super T , ? extends Observable <? extends R >> func ) {
3963
3988
return mergeMap (func );
3964
3989
}
@@ -5237,6 +5262,7 @@ public ConnectableObservable<T> publishLast() {
5237
5262
* @see #reduce(Func2)
5238
5263
* @deprecated use #reduce(Func2)
5239
5264
*/
5265
+ @ Deprecated
5240
5266
public Observable <T > aggregate (Func2 <T , T , T > accumulator ) {
5241
5267
return reduce (accumulator );
5242
5268
}
@@ -5303,6 +5329,7 @@ public R call(R state, T value) {
5303
5329
* @see #reduce(Object, Func2)
5304
5330
* @deprecated use #reduce(Object, Func2)
5305
5331
*/
5332
+ @ Deprecated
5306
5333
public <R > Observable <R > aggregate (R initialValue , Func2 <R , ? super T , R > accumulator ) {
5307
5334
return reduce (initialValue , accumulator );
5308
5335
}
0 commit comments