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

Method just

src/main/java/io/reactivex/rxjava3/core/Single.java:1239–1245  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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,

Callers 15

setupMethod · 0.95
setupMethod · 0.95
applyMethod · 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

Calls 1

onAssemblyMethod · 0.95

Tested by 15

singleSingleMethod · 0.76
singleMaybeMethod · 0.76
singleCompletableMethod · 0.76
singleCompletable2Method · 0.76
singlePublisherMethod · 0.76
singleCombinerMethod · 0.76
singleObservableMethod · 0.76
singleConverterThrowsMethod · 0.76
compositeTestMethod · 0.76