Skip to content

Commit

Permalink
2.x: Change ObservableSource.defer to Observable.defer in Observable.…
Browse files Browse the repository at this point in the history
…scan() documentation. (#5306)
  • Loading branch information
vanniktech authored and akarnokd committed Apr 21, 2017
1 parent 817084a commit 475c058
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/java/io/reactivex/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -8923,12 +8923,12 @@ public final Maybe<T> reduce(BiFunction<T, T, T> reducer) {
* the application of this operator via {@link #defer(Callable)}:
* <pre><code>
* ObservableSource&lt;T> source = ...
* ObservableSource.defer(() -> source.reduce(new ArrayList&lt;>(), (list, item) -> list.add(item)));
* Observable.defer(() -> source.reduce(new ArrayList&lt;>(), (list, item) -> list.add(item)));
*
* // alternatively, by using compose to stay fluent
*
* source.compose(o ->
* ObservableSource.defer(() -> o.reduce(new ArrayList&lt;>(), (list, item) -> list.add(item)))
* Observable.defer(() -> o.reduce(new ArrayList&lt;>(), (list, item) -> list.add(item)))
* );
* </code></pre>
* <dl>
Expand Down Expand Up @@ -8972,12 +8972,12 @@ public final <R> Single<R> reduce(R seed, BiFunction<R, ? super T, R> reducer) {
* the application of this operator via {@link #defer(Callable)}:
* <pre><code>
* ObservableSource&lt;T> source = ...
* ObservableSource.defer(() -> source.reduce(new ArrayList&lt;>(), (list, item) -> list.add(item)));
* Observable.defer(() -> source.reduce(new ArrayList&lt;>(), (list, item) -> list.add(item)));
*
* // alternatively, by using compose to stay fluent
*
* source.compose(o ->
* ObservableSource.defer(() -> o.reduce(new ArrayList&lt;>(), (list, item) -> list.add(item)))
* Observable.defer(() -> o.reduce(new ArrayList&lt;>(), (list, item) -> list.add(item)))
* );
* </code></pre>
* <dl>
Expand Down Expand Up @@ -10034,12 +10034,12 @@ public final Observable<T> scan(BiFunction<T, T, T> accumulator) {
* the application of this operator via {@link #defer(Callable)}:
* <pre><code>
* ObservableSource&lt;T> source = ...
* ObservableSource.defer(() -> source.scan(new ArrayList&lt;>(), (list, item) -> list.add(item)));
* Observable.defer(() -> source.scan(new ArrayList&lt;>(), (list, item) -> list.add(item)));
*
* // alternatively, by using compose to stay fluent
*
* source.compose(o ->
* ObservableSource.defer(() -> o.scan(new ArrayList&lt;>(), (list, item) -> list.add(item)))
* Observable.defer(() -> o.scan(new ArrayList&lt;>(), (list, item) -> list.add(item)))
* );
* </code></pre>
* <dl>
Expand Down Expand Up @@ -10083,12 +10083,12 @@ public final <R> Observable<R> scan(final R initialValue, BiFunction<R, ? super
* the application of this operator via {@link #defer(Callable)}:
* <pre><code>
* ObservableSource&lt;T> source = ...
* ObservableSource.defer(() -> source.scan(new ArrayList&lt;>(), (list, item) -> list.add(item)));
* Observable.defer(() -> source.scan(new ArrayList&lt;>(), (list, item) -> list.add(item)));
*
* // alternatively, by using compose to stay fluent
*
* source.compose(o ->
* ObservableSource.defer(() -> o.scan(new ArrayList&lt;>(), (list, item) -> list.add(item)))
* Observable.defer(() -> o.scan(new ArrayList&lt;>(), (list, item) -> list.add(item)))
* );
* </code></pre>
* <dl>
Expand Down

0 comments on commit 475c058

Please sign in to comment.