@@ -2234,17 +2234,17 @@ public static Observable<Long> intervalRange(long start, long count, long initia
2234
2234
}
2235
2235
2236
2236
/**
2237
- * Returns an Observable that emits a single item and then completes.
2237
+ * Returns an Observable that signals the given (constant reference) item and then completes.
2238
2238
* <p>
2239
2239
* <img width="640" height="290" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/just.item.png" alt="">
2240
2240
* <p>
2241
- * To convert any object into an ObservableSource that emits that object, pass that object into the {@code just}
2242
- * method.
2241
+ * Note that the item is taken and re-emitted as is and not computed by any means by {@code just}. Use {@link #fromCallable(Callable)}
2242
+ * to generate a single item on demand (when {@code Observer}s subscribe to it).
2243
+ * <p>
2244
+ * See the multi-parameter overloads of {@code just} to emit more than one (constant reference) items one after the other.
2245
+ * Use {@link #fromArray(Object...)} to emit an arbitrary number of items that are known upfront.
2243
2246
* <p>
2244
- * This is similar to the {@link #fromArray(java.lang.Object[])} method, except that {@code from} will convert
2245
- * an {@link Iterable} object into an ObservableSource that emits each of the items in the Iterable, one at a
2246
- * time, while the {@code just} method converts an Iterable into an ObservableSource that emits the entire
2247
- * Iterable as a single item.
2247
+ * To emit the items of an {@link Iterable} sequence (such as a {@link java.util.List}), use {@link #fromIterable(Iterable)}.
2248
2248
* <dl>
2249
2249
* <dt><b>Scheduler:</b></dt>
2250
2250
* <dd>{@code just} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -2256,6 +2256,10 @@ public static Observable<Long> intervalRange(long start, long count, long initia
2256
2256
* the type of that item
2257
2257
* @return an Observable that emits {@code value} as a single item and then completes
2258
2258
* @see <a href="http://reactivex.io/documentation/operators/just.html">ReactiveX operators documentation: Just</a>
2259
+ * @see #just(Object, Object)
2260
+ * @see #fromCallable(Callable)
2261
+ * @see #fromArray(Object...)
2262
+ * @see #fromIterable(Iterable)
2259
2263
*/
2260
2264
@CheckReturnValue
2261
2265
@SchedulerSupport(SchedulerSupport.NONE)
0 commit comments