Skip to content

Commit dcb5d79

Browse files
committed
Updated the comments
1 parent 7ef16c9 commit dcb5d79

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

rxjava-core/src/main/java/rx/Observable.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,25 +1013,17 @@ public static <T> Observable<T> just(T value) {
10131013
}
10141014

10151015
/**
1016-
* Returns an Observable that emits a single item and then completes in a specified scheduler.
1016+
* Returns an Observable that emits a single item and then completes on a specified scheduler.
10171017
* <p>
1018-
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/just.png">
1019-
* <p>
1020-
* To convert any object into an Observable that emits that object, pass that object into the
1021-
* <code>just</code> method.
1022-
* <p>
1023-
* This is similar to the {@link #from(java.lang.Object[])} method, except that
1024-
* <code>from()</code> will convert an {@link Iterable} object into an Observable that emits
1025-
* each of the items in the Iterable, one at a time, while the <code>just()</code> method
1026-
* converts an Iterable into an Observable that emits the entire Iterable as a single item.
1018+
* This is a scheduler version of {@link Observable#just(Object)}.
10271019
*
10281020
* @param value
10291021
* the item to pass to the {@link Observer}'s {@link Observer#onNext onNext} method
10301022
* @param scheduler
10311023
* the scheduler to send the single element on
10321024
* @param <T>
10331025
* the type of that item
1034-
* @return an Observable that emits a single item and then completes
1026+
* @return an Observable that emits a single item and then completes on a specified scheduler.
10351027
*/
10361028
public static <T> Observable<T> just(T value, Scheduler scheduler) {
10371029
return just(value).observeOn(scheduler);

0 commit comments

Comments
 (0)