Returns a Single that emits a specified item. To convert any object into a Single that emits that object, pass that object into the just met
(T item)
| 1237 | * @see <a href="http://reactivex.io/documentation/operators/just.html">ReactiveX operators documentation: Just</a> |
| 1238 | */ |
| 1239 | @CheckReturnValue |
| 1240 | @SchedulerSupport(SchedulerSupport.NONE) |
| 1241 | @NonNull |
| 1242 | public static <@NonNull T> Single<T> just(T item) { |
| 1243 | Objects.requireNonNull(item, "item is null"); |
| 1244 | return RxJavaPlugins.onAssembly(new SingleJust<>(item)); |
| 1245 | } |
| 1246 | |
| 1247 | /** |
| 1248 | * Merges an {@link Iterable} sequence of {@link SingleSource} instances into a single {@link Flowable} sequence, |