Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add see annotation for range operators #6934

Merged
merged 1 commit into from
Mar 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/main/java/io/reactivex/rxjava3/core/Flowable.java
Original file line number Diff line number Diff line change
Expand Up @@ -2921,11 +2921,12 @@ public static Flowable<Long> interval(long period, @NonNull TimeUnit unit, @NonN
* @throws IllegalArgumentException
* if {@code count} is less than zero, or if {@code start} + {@code count} &minus; 1 exceeds
* {@link Long#MAX_VALUE}
* @see #range(int, int)
*/
@CheckReturnValue
@NonNull
@BackpressureSupport(BackpressureKind.ERROR)
@SchedulerSupport(SchedulerSupport.COMPUTATION)
@NonNull
public static Flowable<Long> intervalRange(long start, long count, long initialDelay, long period, @NonNull TimeUnit unit) {
return intervalRange(start, count, initialDelay, period, unit, Schedulers.computation());
}
Expand Down Expand Up @@ -4386,6 +4387,8 @@ public static <T> Flowable<T> never() {
* if {@code count} is less than zero, or if {@code start} + {@code count} &minus; 1 exceeds
* {@link Integer#MAX_VALUE}
* @see <a href="http://reactivex.io/documentation/operators/range.html">ReactiveX operators documentation: Range</a>
* @see #rangeLong(long, long)
* @see #intervalRange(long, long, long, long, TimeUnit)
*/
@CheckReturnValue
@BackpressureSupport(BackpressureKind.FULL)
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/io/reactivex/rxjava3/core/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -2537,10 +2537,11 @@ public static Observable<Long> interval(long period, @NonNull TimeUnit unit, @No
* @throws IllegalArgumentException
* if {@code count} is negative, or if {@code start} + {@code count} &minus; 1 exceeds
* {@link Long#MAX_VALUE}
* @see #range(int, int)
*/
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.COMPUTATION)
@NonNull
@SchedulerSupport(SchedulerSupport.COMPUTATION)
public static Observable<Long> intervalRange(long start, long count, long initialDelay, long period, @NonNull TimeUnit unit) {
return intervalRange(start, count, initialDelay, period, unit, Schedulers.computation());
}
Expand Down Expand Up @@ -3895,6 +3896,8 @@ public static <T> Observable<T> never() {
* if {@code count} is negative, or if {@code start} + {@code count} &minus; 1 exceeds
* {@link Integer#MAX_VALUE}
* @see <a href="http://reactivex.io/documentation/operators/range.html">ReactiveX operators documentation: Range</a>
* @see #rangeLong(long, long)
* @see #intervalRange(long, long, long, long, TimeUnit)
*/
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.NONE)
Expand Down Expand Up @@ -3933,6 +3936,7 @@ public static Observable<Integer> range(int start, int count) {
* if {@code count} is negative, or if {@code start} + {@code count} &minus; 1 exceeds
* {@link Long#MAX_VALUE}
* @see <a href="http://reactivex.io/documentation/operators/range.html">ReactiveX operators documentation: Range</a>
* @see #intervalRange(long, long, long, long, TimeUnit)
*/
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.NONE)
Expand Down