@@ -3214,16 +3214,18 @@ public final <R> Observable<R> cast(final Class<R> klass) {
32143214 }
32153215
32163216 /**
3217- * Collects values emitted by the source Observable into a single mutable data structure and returns an
3217+ * Collects items emitted by the source Observable into a single mutable data structure and returns an
32183218 * Observable that emits this structure.
32193219 * <p>
3220+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/collect.png">
3221+ * <p>
32203222 * This is a simplified version of {@code reduce} that does not need to return the state on each pass.
32213223 *
3222- * @warn javadocs incomplete; no marble diagram for this operator
32233224 * @param state
3224- * @warn javadocs incomplete; "state" parameter not described
3225+ * the mutable data structure that will collect the items
32253226 * @param collector
3226- * @warn javadocs incomplete; "collector" parameter not described
3227+ * a function that accepts the {@code state} and an emitted item, and modifies {@code state}
3228+ * accordingly
32273229 * @return an Observable that emits the result of collecting the values emitted by the source Observable
32283230 * into a single mutable data structure
32293231 */
@@ -5502,7 +5504,7 @@ public final <R> Observable<R> scan(R initialValue, Func2<R, ? super T, R> accum
55025504 * It is possible for an Observable to invoke its Subscribers' methods asynchronously, perhaps from
55035505 * different threads. This could make such an Observable poorly-behaved, in that it might try to invoke
55045506 * {@code onCompleted} or {@code onError} before one of its {@code onNext} invocations, or it might call
5505- * {@code onNext} from two different threads simultaneously . You can force such an Observable to be
5507+ * {@code onNext} from two different threads concurrently . You can force such an Observable to be
55065508 * well-behaved and sequential by applying the {@code serialize} method to it.
55075509 * <p>
55085510 * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/synchronize.png">
0 commit comments