MCPcopy Index your code
hub / github.com/ReactiveX/RxJava / just

Method just

src/main/java/io/reactivex/rxjava3/core/Maybe.java:1315–1321  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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,

Callers 15

setupMethod · 0.95
applyMethod · 0.95
setupMethod · 0.95
setupMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
maybeSingleMethod · 0.95
maybeSingle2Method · 0.95

Calls 1

onAssemblyMethod · 0.95

Tested by 15

maybeSingleMethod · 0.76
maybeSingle2Method · 0.76
maybeMaybeMethod · 0.76
maybePublisherMethod · 0.76
maybeObservableMethod · 0.76
maybeCombinerMethod · 0.76
maybeCompletableMethod · 0.76
maybeCompletable2Method · 0.76
maybeConverterThrowsMethod · 0.76
compositeTestMethod · 0.76