You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rxjava-core/src/main/java/rx/Observable.java
+225-32
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,11 @@
83
83
importrx.util.functions.Func2;
84
84
importrx.util.functions.Func3;
85
85
importrx.util.functions.Func4;
86
+
importrx.util.functions.Func5;
87
+
importrx.util.functions.Func6;
88
+
importrx.util.functions.Func7;
89
+
importrx.util.functions.Func8;
90
+
importrx.util.functions.Func9;
86
91
importrx.util.functions.FuncN;
87
92
importrx.util.functions.Function;
88
93
@@ -908,18 +913,17 @@ public static <T> Observable<T> from(Future<T> future, long timeout, TimeUnit un
908
913
* The resulting {@code Observable<R>} returned from {@code zip} will invoke {@link Observer#onNext onNext} as many times as the number of {@code onNext} invocations
909
914
* of the source Observable that emits the fewest items.
910
915
*
911
-
* @param w0
916
+
* @param o1
912
917
* one source Observable
913
-
* @param w1
918
+
* @param o2
914
919
* another source Observable
915
-
* @param reduceFunction
916
-
* a function that, when applied to a pair of items, each emitted by one of the two
917
-
* source Observables, results in an item that will be emitted by the resulting
918
-
* Observable
920
+
* @param zipFunction
921
+
* a function that, when applied to an item emitted by each of the source
922
+
* Observables, results in an item that will be emitted by the resulting Observable
919
923
* @return an Observable that emits the zipped results
* The resulting {@code Observable<R>} returned from {@code zip} will invoke {@link Observer#onNext onNext} as many times as the number of {@code onNext} invocations
982
986
* of the source Observable that emits the fewest items.
983
987
*
984
-
* @param w0
988
+
* @param o1
985
989
* one source Observable
986
-
* @param w1
987
-
* another source Observable
988
-
* @param w2
990
+
* @param o2
991
+
* a second source Observable
992
+
* @param o3
989
993
* a third source Observable
990
-
* @param function
994
+
* @param zipFunction
991
995
* a function that, when applied to an item emitted by each of the source
992
996
* Observables, results in an item that will be emitted by the resulting Observable
993
997
* @return an Observable that emits the zipped results
* The resulting {@code Observable<R>} returned from {@code zip} will invoke {@link Observer#onNext onNext} as many times as the number of {@code onNext} invocations
1011
1015
* of the source Observable that emits the fewest items.
1012
1016
*
1013
-
* @param w0
1017
+
* @param o1
1014
1018
* one source Observable
1015
-
* @param w1
1016
-
* another source Observable
1017
-
* @param w2
1019
+
* @param o2
1020
+
* a second source Observable
1021
+
* @param o3
1018
1022
* a third source Observable
1019
-
* @param w3
1023
+
* @param o4
1020
1024
* a fourth source Observable
1021
-
* @param reduceFunction
1025
+
* @param zipFunction
1026
+
* a function that, when applied to an item emitted by each of the source
1027
+
* Observables, results in an item that will be emitted by the resulting Observable
1028
+
* @return an Observable that emits the zipped results
* <p> {@code zip} applies this function in strict sequence, so the first item emitted by the
1040
+
* new Observable will be the result of the function applied to the first item emitted by {@code w0}, the first item emitted by {@code w1}, the first item emitted by {@code w2}, and the first item
1041
+
* emitted by {@code w3}; the second item emitted by
1042
+
* the new Observable will be the result of the function applied to the second item emitted by
1043
+
* each of those Observables; and so forth.
1044
+
* <p>
1045
+
* The resulting {@code Observable<R>} returned from {@code zip} will invoke {@link Observer#onNext onNext} as many times as the number of {@code onNext} invocations
1046
+
* of the source Observable that emits the fewest items.
1047
+
*
1048
+
* @param o1
1049
+
* one source Observable
1050
+
* @param o2
1051
+
* a second source Observable
1052
+
* @param o3
1053
+
* a third source Observable
1054
+
* @param o4
1055
+
* a fourth source Observable
1056
+
* @param o5
1057
+
* a fifth source Observable
1058
+
* @param zipFunction
1059
+
* a function that, when applied to an item emitted by each of the source
1060
+
* Observables, results in an item that will be emitted by the resulting Observable
1061
+
* @return an Observable that emits the zipped results
* <p> {@code zip} applies this function in strict sequence, so the first item emitted by the
1073
+
* new Observable will be the result of the function applied to the first item emitted by {@code w0}, the first item emitted by {@code w1}, the first item emitted by {@code w2}, and the first item
1074
+
* emitted by {@code w3}; the second item emitted by
1075
+
* the new Observable will be the result of the function applied to the second item emitted by
1076
+
* each of those Observables; and so forth.
1077
+
* <p>
1078
+
* The resulting {@code Observable<R>} returned from {@code zip} will invoke {@link Observer#onNext onNext} as many times as the number of {@code onNext} invocations
1079
+
* of the source Observable that emits the fewest items.
1080
+
*
1081
+
* @param o1
1082
+
* one source Observable
1083
+
* @param o2
1084
+
* a second source Observable
1085
+
* @param o3
1086
+
* a third source Observable
1087
+
* @param o4
1088
+
* a fourth source Observable
1089
+
* @param o5
1090
+
* a fifth source Observable
1091
+
* @param o6
1092
+
* a sixth source Observable
1093
+
* @param zipFunction
1094
+
* a function that, when applied to an item emitted by each of the source
1095
+
* Observables, results in an item that will be emitted by the resulting Observable
1096
+
* @return an Observable that emits the zipped results
* <p> {@code zip} applies this function in strict sequence, so the first item emitted by the
1109
+
* new Observable will be the result of the function applied to the first item emitted by {@code w0}, the first item emitted by {@code w1}, the first item emitted by {@code w2}, and the first item
1110
+
* emitted by {@code w3}; the second item emitted by
1111
+
* the new Observable will be the result of the function applied to the second item emitted by
1112
+
* each of those Observables; and so forth.
1113
+
* <p>
1114
+
* The resulting {@code Observable<R>} returned from {@code zip} will invoke {@link Observer#onNext onNext} as many times as the number of {@code onNext} invocations
1115
+
* of the source Observable that emits the fewest items.
1116
+
*
1117
+
* @param o1
1118
+
* one source Observable
1119
+
* @param o2
1120
+
* a second source Observable
1121
+
* @param o3
1122
+
* a third source Observable
1123
+
* @param o4
1124
+
* a fourth source Observable
1125
+
* @param o5
1126
+
* a fifth source Observable
1127
+
* @param o6
1128
+
* a sixth source Observable
1129
+
* @param o7
1130
+
* a seventh source Observable
1131
+
* @param zipFunction
1022
1132
* a function that, when applied to an item emitted by each of the source
1023
1133
* Observables, results in an item that will be emitted by the resulting Observable
1024
1134
* @return an Observable that emits the zipped results
* <p> {@code zip} applies this function in strict sequence, so the first item emitted by the
1147
+
* new Observable will be the result of the function applied to the first item emitted by {@code w0}, the first item emitted by {@code w1}, the first item emitted by {@code w2}, and the first item
1148
+
* emitted by {@code w3}; the second item emitted by
1149
+
* the new Observable will be the result of the function applied to the second item emitted by
1150
+
* each of those Observables; and so forth.
1151
+
* <p>
1152
+
* The resulting {@code Observable<R>} returned from {@code zip} will invoke {@link Observer#onNext onNext} as many times as the number of {@code onNext} invocations
1153
+
* of the source Observable that emits the fewest items.
1154
+
*
1155
+
* @param o1
1156
+
* one source Observable
1157
+
* @param o2
1158
+
* a second source Observable
1159
+
* @param o3
1160
+
* a third source Observable
1161
+
* @param o4
1162
+
* a fourth source Observable
1163
+
* @param o5
1164
+
* a fifth source Observable
1165
+
* @param o6
1166
+
* a sixth source Observable
1167
+
* @param o7
1168
+
* a seventh source Observable
1169
+
* @param o8
1170
+
* an eighth source Observable
1171
+
* @param zipFunction
1172
+
* a function that, when applied to an item emitted by each of the source
1173
+
* Observables, results in an item that will be emitted by the resulting Observable
1174
+
* @return an Observable that emits the zipped results
* <p> {@code zip} applies this function in strict sequence, so the first item emitted by the
1187
+
* new Observable will be the result of the function applied to the first item emitted by {@code w0}, the first item emitted by {@code w1}, the first item emitted by {@code w2}, and the first item
1188
+
* emitted by {@code w3}; the second item emitted by
1189
+
* the new Observable will be the result of the function applied to the second item emitted by
1190
+
* each of those Observables; and so forth.
1191
+
* <p>
1192
+
* The resulting {@code Observable<R>} returned from {@code zip} will invoke {@link Observer#onNext onNext} as many times as the number of {@code onNext} invocations
1193
+
* of the source Observable that emits the fewest items.
1194
+
*
1195
+
* @param o1
1196
+
* one source Observable
1197
+
* @param o2
1198
+
* a second source Observable
1199
+
* @param o3
1200
+
* a third source Observable
1201
+
* @param o4
1202
+
* a fourth source Observable
1203
+
* @param o5
1204
+
* a fifth source Observable
1205
+
* @param o6
1206
+
* a sixth source Observable
1207
+
* @param o7
1208
+
* a seventh source Observable
1209
+
* @param o8
1210
+
* an eighth source Observable
1211
+
* @param o9
1212
+
* a ninth source Observable
1213
+
* @param zipFunction
1214
+
* a function that, when applied to an item emitted by each of the source
1215
+
* Observables, results in an item that will be emitted by the resulting Observable
1216
+
* @return an Observable that emits the zipped results
0 commit comments