@@ -979,14 +979,232 @@ public static <T> Observable<T> merge(Observable<? extends T>... source) {
979
979
* <p>
980
980
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/concat.png">
981
981
*
982
- * @param source
983
- * a series of Observables
982
+ * @param observables
983
+ * an Observable of Observables
984
+ * @return an Observable that emits items that are the result of combining the items emitted by
985
+ * the {@code source} Observables, one after the other
986
+ * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.concat(v=vs.103).aspx">MSDN: Observable.Concat Method</a>
987
+ */
988
+ public static <T > Observable <T > concat (Observable <Observable <T >> observables ) {
989
+ return create (OperationConcat .concat (observables ));
990
+ }
991
+
992
+ /**
993
+ * Returns an Observable that emits the items emitted by two or more Observables, one after the
994
+ * other.
995
+ * <p>
996
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/concat.png">
997
+ *
998
+ * @param t1
999
+ * an Observable to be concatenated
1000
+ * @param t2
1001
+ * an Observable to be concatenated
1002
+ * an Observable to be concatenated
1003
+ * @return an Observable that emits items that are the result of combining the items emitted by
1004
+ * the {@code source} Observables, one after the other
1005
+ * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.concat(v=vs.103).aspx">MSDN: Observable.Concat Method</a>
1006
+ */
1007
+ @ SuppressWarnings ("unchecked" )
1008
+ // suppress because the types are checked by the method signature before using a vararg
1009
+ public static <T > Observable <T > concat (Observable <? extends T > t1 , Observable <? extends T > t2 ) {
1010
+ return create (OperationConcat .concat (t1 , t2 ));
1011
+ }
1012
+
1013
+ /**
1014
+ * Returns an Observable that emits the items emitted by two or more Observables, one after the
1015
+ * other.
1016
+ * <p>
1017
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/concat.png">
1018
+ *
1019
+ * @param t1
1020
+ * an Observable to be concatenated
1021
+ * @param t2
1022
+ * an Observable to be concatenated
1023
+ * @param t3
1024
+ * an Observable to be concatenated
1025
+ * an Observable to be concatenated
1026
+ * @return an Observable that emits items that are the result of combining the items emitted by
1027
+ * the {@code source} Observables, one after the other
1028
+ * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.concat(v=vs.103).aspx">MSDN: Observable.Concat Method</a>
1029
+ */
1030
+ @ SuppressWarnings ("unchecked" )
1031
+ // suppress because the types are checked by the method signature before using a vararg
1032
+ public static <T > Observable <T > concat (Observable <? extends T > t1 , Observable <? extends T > t2 , Observable <? extends T > t3 ) {
1033
+ return create (OperationConcat .concat (t1 , t2 , t3 ));
1034
+ }
1035
+
1036
+ /**
1037
+ * Returns an Observable that emits the items emitted by two or more Observables, one after the
1038
+ * other.
1039
+ * <p>
1040
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/concat.png">
1041
+ *
1042
+ * @param t1
1043
+ * an Observable to be concatenated
1044
+ * @param t2
1045
+ * an Observable to be concatenated
1046
+ * @param t3
1047
+ * an Observable to be concatenated
1048
+ * @param t4
1049
+ * an Observable to be concatenated
1050
+ * @return an Observable that emits items that are the result of combining the items emitted by
1051
+ * the {@code source} Observables, one after the other
1052
+ * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.concat(v=vs.103).aspx">MSDN: Observable.Concat Method</a>
1053
+ */
1054
+ @ SuppressWarnings ("unchecked" )
1055
+ // suppress because the types are checked by the method signature before using a vararg
1056
+ public static <T > Observable <T > concat (Observable <? extends T > t1 , Observable <? extends T > t2 , Observable <? extends T > t3 , Observable <? extends T > t4 ) {
1057
+ return create (OperationConcat .concat (t1 , t2 , t3 , t4 ));
1058
+ }
1059
+
1060
+ /**
1061
+ * Returns an Observable that emits the items emitted by two or more Observables, one after the
1062
+ * other.
1063
+ * <p>
1064
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/concat.png">
1065
+ *
1066
+ * @param t1
1067
+ * an Observable to be concatenated
1068
+ * @param t2
1069
+ * an Observable to be concatenated
1070
+ * @param t3
1071
+ * an Observable to be concatenated
1072
+ * @param t4
1073
+ * an Observable to be concatenated
1074
+ * @param t5
1075
+ * an Observable to be concatenated
1076
+ * @return an Observable that emits items that are the result of combining the items emitted by
1077
+ * the {@code source} Observables, one after the other
1078
+ * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.concat(v=vs.103).aspx">MSDN: Observable.Concat Method</a>
1079
+ */
1080
+ @ SuppressWarnings ("unchecked" )
1081
+ // suppress because the types are checked by the method signature before using a vararg
1082
+ public static <T > Observable <T > concat (Observable <? extends T > t1 , Observable <? extends T > t2 , Observable <? extends T > t3 , Observable <? extends T > t4 , Observable <? extends T > t5 ) {
1083
+ return create (OperationConcat .concat (t1 , t2 , t3 , t4 , t5 ));
1084
+ }
1085
+
1086
+ /**
1087
+ * Returns an Observable that emits the items emitted by two or more Observables, one after the
1088
+ * other.
1089
+ * <p>
1090
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/concat.png">
1091
+ *
1092
+ * @param t1
1093
+ * an Observable to be concatenated
1094
+ * @param t2
1095
+ * an Observable to be concatenated
1096
+ * @param t3
1097
+ * an Observable to be concatenated
1098
+ * @param t4
1099
+ * an Observable to be concatenated
1100
+ * @param t5
1101
+ * an Observable to be concatenated
1102
+ * @param t6
1103
+ * an Observable to be concatenated
1104
+ * @return an Observable that emits items that are the result of combining the items emitted by
1105
+ * the {@code source} Observables, one after the other
1106
+ * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.concat(v=vs.103).aspx">MSDN: Observable.Concat Method</a>
1107
+ */
1108
+ @ SuppressWarnings ("unchecked" )
1109
+ // suppress because the types are checked by the method signature before using a vararg
1110
+ public static <T > Observable <T > concat (Observable <? extends T > t1 , Observable <? extends T > t2 , Observable <? extends T > t3 , Observable <? extends T > t4 , Observable <? extends T > t5 , Observable <? extends T > t6 ) {
1111
+ return create (OperationConcat .concat (t1 , t2 , t3 , t4 , t5 , t6 ));
1112
+ }
1113
+
1114
+ /**
1115
+ * Returns an Observable that emits the items emitted by two or more Observables, one after the
1116
+ * other.
1117
+ * <p>
1118
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/concat.png">
1119
+ *
1120
+ * @param t1
1121
+ * an Observable to be concatenated
1122
+ * @param t2
1123
+ * an Observable to be concatenated
1124
+ * @param t3
1125
+ * an Observable to be concatenated
1126
+ * @param t4
1127
+ * an Observable to be concatenated
1128
+ * @param t5
1129
+ * an Observable to be concatenated
1130
+ * @param t6
1131
+ * an Observable to be concatenated
1132
+ * @param t7
1133
+ * an Observable to be concatenated
984
1134
* @return an Observable that emits items that are the result of combining the items emitted by
985
1135
* the {@code source} Observables, one after the other
986
1136
* @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.concat(v=vs.103).aspx">MSDN: Observable.Concat Method</a>
987
1137
*/
988
- public static <T > Observable <T > concat (Observable <? extends T >... source ) {
989
- return create (OperationConcat .concat (source ));
1138
+ @ SuppressWarnings ("unchecked" )
1139
+ // suppress because the types are checked by the method signature before using a vararg
1140
+ public static <T > Observable <T > concat (Observable <? extends T > t1 , Observable <? extends T > t2 , Observable <? extends T > t3 , Observable <? extends T > t4 , Observable <? extends T > t5 , Observable <? extends T > t6 , Observable <? extends T > t7 ) {
1141
+ return create (OperationConcat .concat (t1 , t2 , t3 , t4 , t5 , t6 , t7 ));
1142
+ }
1143
+
1144
+ /**
1145
+ * Returns an Observable that emits the items emitted by two or more Observables, one after the
1146
+ * other.
1147
+ * <p>
1148
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/concat.png">
1149
+ *
1150
+ * @param t1
1151
+ * an Observable to be concatenated
1152
+ * @param t2
1153
+ * an Observable to be concatenated
1154
+ * @param t3
1155
+ * an Observable to be concatenated
1156
+ * @param t4
1157
+ * an Observable to be concatenated
1158
+ * @param t5
1159
+ * an Observable to be concatenated
1160
+ * @param t6
1161
+ * an Observable to be concatenated
1162
+ * @param t7
1163
+ * an Observable to be concatenated
1164
+ * @param t8
1165
+ * an Observable to be concatenated
1166
+ * @return an Observable that emits items that are the result of combining the items emitted by
1167
+ * the {@code source} Observables, one after the other
1168
+ * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.concat(v=vs.103).aspx">MSDN: Observable.Concat Method</a>
1169
+ */
1170
+ @ SuppressWarnings ("unchecked" )
1171
+ // suppress because the types are checked by the method signature before using a vararg
1172
+ public static <T > Observable <T > concat (Observable <? extends T > t1 , Observable <? extends T > t2 , Observable <? extends T > t3 , Observable <? extends T > t4 , Observable <? extends T > t5 , Observable <? extends T > t6 , Observable <? extends T > t7 , Observable <? extends T > t8 ) {
1173
+ return create (OperationConcat .concat (t1 , t2 , t3 , t4 , t5 , t6 , t7 , t8 ));
1174
+ }
1175
+
1176
+ /**
1177
+ * Returns an Observable that emits the items emitted by two or more Observables, one after the
1178
+ * other.
1179
+ * <p>
1180
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/concat.png">
1181
+ *
1182
+ * @param t1
1183
+ * an Observable to be concatenated
1184
+ * @param t2
1185
+ * an Observable to be concatenated
1186
+ * @param t3
1187
+ * an Observable to be concatenated
1188
+ * @param t4
1189
+ * an Observable to be concatenated
1190
+ * @param t5
1191
+ * an Observable to be concatenated
1192
+ * @param t6
1193
+ * an Observable to be concatenated
1194
+ * @param t7
1195
+ * an Observable to be concatenated
1196
+ * @param t8
1197
+ * an Observable to be concatenated
1198
+ * @param t9
1199
+ * an Observable to be concatenated
1200
+ * @return an Observable that emits items that are the result of combining the items emitted by
1201
+ * the {@code source} Observables, one after the other
1202
+ * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.concat(v=vs.103).aspx">MSDN: Observable.Concat Method</a>
1203
+ */
1204
+ @ SuppressWarnings ("unchecked" )
1205
+ // suppress because the types are checked by the method signature before using a vararg
1206
+ public static <T > Observable <T > concat (Observable <? extends T > t1 , Observable <? extends T > t2 , Observable <? extends T > t3 , Observable <? extends T > t4 , Observable <? extends T > t5 , Observable <? extends T > t6 , Observable <? extends T > t7 , Observable <? extends T > t8 , Observable <? extends T > t9 ) {
1207
+ return create (OperationConcat .concat (t1 , t2 , t3 , t4 , t5 , t6 , t7 , t8 , t9 ));
990
1208
}
991
1209
992
1210
/**
0 commit comments