@@ -1735,6 +1735,7 @@ public static <T> Observable<T> error(final Throwable exception) {
1735
1735
*/
1736
1736
@CheckReturnValue
1737
1737
@SchedulerSupport(SchedulerSupport.NONE)
1738
+ @NonNull
1738
1739
public static <T> Observable<T> fromArray(T... items) {
1739
1740
ObjectHelper.requireNonNull(items, "items is null");
1740
1741
if (items.length == 0) {
@@ -1775,6 +1776,7 @@ public static <T> Observable<T> fromArray(T... items) {
1775
1776
* @since 2.0
1776
1777
*/
1777
1778
@CheckReturnValue
1779
+ @NonNull
1778
1780
@SchedulerSupport(SchedulerSupport.NONE)
1779
1781
public static <T> Observable<T> fromCallable(Callable<? extends T> supplier) {
1780
1782
ObjectHelper.requireNonNull(supplier, "supplier is null");
@@ -1808,6 +1810,7 @@ public static <T> Observable<T> fromCallable(Callable<? extends T> supplier) {
1808
1810
* @see <a href="http://reactivex.io/documentation/operators/from.html">ReactiveX operators documentation: From</a>
1809
1811
*/
1810
1812
@CheckReturnValue
1813
+ @NonNull
1811
1814
@SchedulerSupport(SchedulerSupport.NONE)
1812
1815
public static <T> Observable<T> fromFuture(Future<? extends T> future) {
1813
1816
ObjectHelper.requireNonNull(future, "future is null");
@@ -1845,6 +1848,7 @@ public static <T> Observable<T> fromFuture(Future<? extends T> future) {
1845
1848
* @see <a href="http://reactivex.io/documentation/operators/from.html">ReactiveX operators documentation: From</a>
1846
1849
*/
1847
1850
@CheckReturnValue
1851
+ @NonNull
1848
1852
@SchedulerSupport(SchedulerSupport.NONE)
1849
1853
public static <T> Observable<T> fromFuture(Future<? extends T> future, long timeout, TimeUnit unit) {
1850
1854
ObjectHelper.requireNonNull(future, "future is null");
@@ -1886,6 +1890,7 @@ public static <T> Observable<T> fromFuture(Future<? extends T> future, long time
1886
1890
* @see <a href="http://reactivex.io/documentation/operators/from.html">ReactiveX operators documentation: From</a>
1887
1891
*/
1888
1892
@CheckReturnValue
1893
+ @NonNull
1889
1894
@SchedulerSupport(SchedulerSupport.CUSTOM)
1890
1895
public static <T> Observable<T> fromFuture(Future<? extends T> future, long timeout, TimeUnit unit, Scheduler scheduler) {
1891
1896
ObjectHelper.requireNonNull(scheduler, "scheduler is null");
@@ -1921,6 +1926,7 @@ public static <T> Observable<T> fromFuture(Future<? extends T> future, long time
1921
1926
* @see <a href="http://reactivex.io/documentation/operators/from.html">ReactiveX operators documentation: From</a>
1922
1927
*/
1923
1928
@CheckReturnValue
1929
+ @NonNull
1924
1930
@SchedulerSupport(SchedulerSupport.CUSTOM)
1925
1931
public static <T> Observable<T> fromFuture(Future<? extends T> future, Scheduler scheduler) {
1926
1932
ObjectHelper.requireNonNull(scheduler, "scheduler is null");
@@ -1946,6 +1952,7 @@ public static <T> Observable<T> fromFuture(Future<? extends T> future, Scheduler
1946
1952
* @see <a href="http://reactivex.io/documentation/operators/from.html">ReactiveX operators documentation: From</a>
1947
1953
*/
1948
1954
@CheckReturnValue
1955
+ @NonNull
1949
1956
@SchedulerSupport(SchedulerSupport.NONE)
1950
1957
public static <T> Observable<T> fromIterable(Iterable<? extends T> source) {
1951
1958
ObjectHelper.requireNonNull(source, "source is null");
@@ -1982,6 +1989,7 @@ public static <T> Observable<T> fromIterable(Iterable<? extends T> source) {
1982
1989
*/
1983
1990
@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)
1984
1991
@CheckReturnValue
1992
+ @NonNull
1985
1993
@SchedulerSupport(SchedulerSupport.NONE)
1986
1994
public static <T> Observable<T> fromPublisher(Publisher<? extends T> publisher) {
1987
1995
ObjectHelper.requireNonNull(publisher, "publisher is null");
@@ -2010,6 +2018,7 @@ public static <T> Observable<T> fromPublisher(Publisher<? extends T> publisher)
2010
2018
* @return the new Observable instance
2011
2019
*/
2012
2020
@CheckReturnValue
2021
+ @NonNull
2013
2022
@SchedulerSupport(SchedulerSupport.NONE)
2014
2023
public static <T> Observable<T> generate(final Consumer<Emitter<T>> generator) {
2015
2024
ObjectHelper.requireNonNull(generator, "generator is null");
@@ -2041,6 +2050,7 @@ public static <T> Observable<T> generate(final Consumer<Emitter<T>> generator) {
2041
2050
* @return the new Observable instance
2042
2051
*/
2043
2052
@CheckReturnValue
2053
+ @NonNull
2044
2054
@SchedulerSupport(SchedulerSupport.NONE)
2045
2055
public static <T, S> Observable<T> generate(Callable<S> initialState, final BiConsumer<S, Emitter<T>> generator) {
2046
2056
ObjectHelper.requireNonNull(generator, "generator is null");
@@ -2073,6 +2083,7 @@ public static <T, S> Observable<T> generate(Callable<S> initialState, final BiCo
2073
2083
* @return the new Observable instance
2074
2084
*/
2075
2085
@CheckReturnValue
2086
+ @NonNull
2076
2087
@SchedulerSupport(SchedulerSupport.NONE)
2077
2088
public static <T, S> Observable<T> generate(
2078
2089
final Callable<S> initialState,
@@ -2139,6 +2150,7 @@ public static <T, S> Observable<T> generate(Callable<S> initialState, BiFunction
2139
2150
* @return the new Observable instance
2140
2151
*/
2141
2152
@CheckReturnValue
2153
+ @NonNull
2142
2154
@SchedulerSupport(SchedulerSupport.NONE)
2143
2155
public static <T, S> Observable<T> generate(Callable<S> initialState, BiFunction<S, Emitter<T>, S> generator,
2144
2156
Consumer<? super S> disposeState) {
@@ -2199,6 +2211,7 @@ public static Observable<Long> interval(long initialDelay, long period, TimeUnit
2199
2211
* @since 1.0.12
2200
2212
*/
2201
2213
@CheckReturnValue
2214
+ @NonNull
2202
2215
@SchedulerSupport(SchedulerSupport.CUSTOM)
2203
2216
public static Observable<Long> interval(long initialDelay, long period, TimeUnit unit, Scheduler scheduler) {
2204
2217
ObjectHelper.requireNonNull(unit, "unit is null");
@@ -2295,6 +2308,7 @@ public static Observable<Long> intervalRange(long start, long count, long initia
2295
2308
* @return the new Observable instance
2296
2309
*/
2297
2310
@CheckReturnValue
2311
+ @NonNull
2298
2312
@SchedulerSupport(SchedulerSupport.CUSTOM)
2299
2313
public static Observable<Long> intervalRange(long start, long count, long initialDelay, long period, TimeUnit unit, Scheduler scheduler) {
2300
2314
if (count < 0) {
@@ -2344,6 +2358,7 @@ public static Observable<Long> intervalRange(long start, long count, long initia
2344
2358
* @see #fromIterable(Iterable)
2345
2359
*/
2346
2360
@CheckReturnValue
2361
+ @NonNull
2347
2362
@SchedulerSupport(SchedulerSupport.NONE)
2348
2363
public static <T> Observable<T> just(T item) {
2349
2364
ObjectHelper.requireNonNull(item, "The item is null");
@@ -2370,6 +2385,7 @@ public static <T> Observable<T> just(T item) {
2370
2385
*/
2371
2386
@SuppressWarnings("unchecked")
2372
2387
@CheckReturnValue
2388
+ @NonNull
2373
2389
@SchedulerSupport(SchedulerSupport.NONE)
2374
2390
public static <T> Observable<T> just(T item1, T item2) {
2375
2391
ObjectHelper.requireNonNull(item1, "The first item is null");
@@ -2400,6 +2416,7 @@ public static <T> Observable<T> just(T item1, T item2) {
2400
2416
*/
2401
2417
@SuppressWarnings("unchecked")
2402
2418
@CheckReturnValue
2419
+ @NonNull
2403
2420
@SchedulerSupport(SchedulerSupport.NONE)
2404
2421
public static <T> Observable<T> just(T item1, T item2, T item3) {
2405
2422
ObjectHelper.requireNonNull(item1, "The first item is null");
@@ -2433,6 +2450,7 @@ public static <T> Observable<T> just(T item1, T item2, T item3) {
2433
2450
*/
2434
2451
@SuppressWarnings("unchecked")
2435
2452
@CheckReturnValue
2453
+ @NonNull
2436
2454
@SchedulerSupport(SchedulerSupport.NONE)
2437
2455
public static <T> Observable<T> just(T item1, T item2, T item3, T item4) {
2438
2456
ObjectHelper.requireNonNull(item1, "The first item is null");
@@ -2469,6 +2487,7 @@ public static <T> Observable<T> just(T item1, T item2, T item3, T item4) {
2469
2487
*/
2470
2488
@SuppressWarnings("unchecked")
2471
2489
@CheckReturnValue
2490
+ @NonNull
2472
2491
@SchedulerSupport(SchedulerSupport.NONE)
2473
2492
public static <T> Observable<T> just(T item1, T item2, T item3, T item4, T item5) {
2474
2493
ObjectHelper.requireNonNull(item1, "The first item is null");
@@ -2508,6 +2527,7 @@ public static <T> Observable<T> just(T item1, T item2, T item3, T item4, T item5
2508
2527
*/
2509
2528
@SuppressWarnings("unchecked")
2510
2529
@CheckReturnValue
2530
+ @NonNull
2511
2531
@SchedulerSupport(SchedulerSupport.NONE)
2512
2532
public static <T> Observable<T> just(T item1, T item2, T item3, T item4, T item5, T item6) {
2513
2533
ObjectHelper.requireNonNull(item1, "The first item is null");
@@ -2550,6 +2570,7 @@ public static <T> Observable<T> just(T item1, T item2, T item3, T item4, T item5
2550
2570
*/
2551
2571
@SuppressWarnings("unchecked")
2552
2572
@CheckReturnValue
2573
+ @NonNull
2553
2574
@SchedulerSupport(SchedulerSupport.NONE)
2554
2575
public static <T> Observable<T> just(T item1, T item2, T item3, T item4, T item5, T item6, T item7) {
2555
2576
ObjectHelper.requireNonNull(item1, "The first item is null");
@@ -2595,6 +2616,7 @@ public static <T> Observable<T> just(T item1, T item2, T item3, T item4, T item5
2595
2616
*/
2596
2617
@SuppressWarnings("unchecked")
2597
2618
@CheckReturnValue
2619
+ @NonNull
2598
2620
@SchedulerSupport(SchedulerSupport.NONE)
2599
2621
public static <T> Observable<T> just(T item1, T item2, T item3, T item4, T item5, T item6, T item7, T item8) {
2600
2622
ObjectHelper.requireNonNull(item1, "The first item is null");
@@ -2643,6 +2665,7 @@ public static <T> Observable<T> just(T item1, T item2, T item3, T item4, T item5
2643
2665
*/
2644
2666
@SuppressWarnings("unchecked")
2645
2667
@CheckReturnValue
2668
+ @NonNull
2646
2669
@SchedulerSupport(SchedulerSupport.NONE)
2647
2670
public static <T> Observable<T> just(T item1, T item2, T item3, T item4, T item5, T item6, T item7, T item8, T item9) {
2648
2671
ObjectHelper.requireNonNull(item1, "The first item is null");
@@ -2694,6 +2717,7 @@ public static <T> Observable<T> just(T item1, T item2, T item3, T item4, T item5
2694
2717
*/
2695
2718
@SuppressWarnings("unchecked")
2696
2719
@CheckReturnValue
2720
+ @NonNull
2697
2721
@SchedulerSupport(SchedulerSupport.NONE)
2698
2722
public static <T> Observable<T> just(T item1, T item2, T item3, T item4, T item5, T item6, T item7, T item8, T item9, T item10) {
2699
2723
ObjectHelper.requireNonNull(item1, "The first item is null");
0 commit comments