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
* Returns the only element of an observable sequence and throws an exception if there is not exactly one element in the observable sequence.
200
200
*
201
-
* @param that
201
+
* @param source
202
202
* the source Observable
203
203
* @return The single element in the observable sequence.
204
204
* @throws IllegalStateException
@@ -211,7 +211,7 @@ public static <T> T single(Observable<T> source) {
211
211
/**
212
212
* Returns the only element of an observable sequence that matches the predicate and throws an exception if there is not exactly one element in the observable sequence.
213
213
*
214
-
* @param that
214
+
* @param source
215
215
* the source Observable
216
216
* @param predicate
217
217
* A predicate function to evaluate for elements in the sequence.
@@ -226,7 +226,7 @@ public static <T> T single(Observable<T> source, Func1<T, Boolean> predicate) {
226
226
/**
227
227
* Returns the only element of an observable sequence that matches the predicate and throws an exception if there is not exactly one element in the observable sequence.
228
228
*
229
-
* @param that
229
+
* @param source
230
230
* the source Observable
231
231
* @param predicate
232
232
* A predicate function to evaluate for elements in the sequence.
@@ -241,7 +241,7 @@ public static <T> T single(Observable<T> source, Object predicate) {
241
241
/**
242
242
* Returns the only element of an observable sequence, or a default value if the observable sequence is empty.
243
243
*
244
-
* @param that
244
+
* @param source
245
245
* the source Observable
246
246
* @param defaultValue
247
247
* default value for a sequence.
@@ -254,7 +254,7 @@ public static <T> T singleOrDefault(Observable<T> source, T defaultValue) {
254
254
/**
255
255
* Returns the only element of an observable sequence that matches the predicate, or a default value if no value is found.
256
256
*
257
-
* @param that
257
+
* @param source
258
258
* the source Observable
259
259
* @param defaultValue
260
260
* default value for a sequence.
@@ -269,7 +269,7 @@ public static <T> T singleOrDefault(Observable<T> source, T defaultValue, Func1<
269
269
/**
270
270
* Returns the only element of an observable sequence that matches the predicate, or a default value if no value is found.
271
271
*
272
-
* @param that
272
+
* @param source
273
273
* the source Observable
274
274
* @param defaultValue
275
275
* default value for a sequence.
@@ -286,7 +286,7 @@ public static <T> T singleOrDefault(Observable<T> source, T defaultValue, Object
286
286
* <p>
287
287
* This will throw an exception if the Observable emits more than 1 value. If more than 1 are expected then use <code>toList().toFuture()</code>.
288
288
*
289
-
* @param that
289
+
* @param source
290
290
* the source Observable
291
291
* @return a Future that expects a single item emitted by the source Observable
0 commit comments