Returns a Maybe that emits a specified item. To convert any object into a Maybe that emits that object, pass that object into the just method. <
(T item)
| 1313 | * @see <a href="http://reactivex.io/documentation/operators/just.html">ReactiveX operators documentation: Just</a> |
| 1314 | */ |
| 1315 | @CheckReturnValue |
| 1316 | @NonNull |
| 1317 | @SchedulerSupport(SchedulerSupport.NONE) |
| 1318 | public static <@NonNull T> Maybe<T> just(T item) { |
| 1319 | Objects.requireNonNull(item, "item is null"); |
| 1320 | return RxJavaPlugins.onAssembly(new MaybeJust<>(item)); |
| 1321 | } |
| 1322 | |
| 1323 | /** |
| 1324 | * Merges an {@link Iterable} sequence of {@link MaybeSource} instances into a single {@link Flowable} sequence, |