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

3.x: Rename to combineLatestArrayDelayError #6838

Merged
merged 1 commit into from
Jan 13, 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
10 changes: 5 additions & 5 deletions src/main/java/io/reactivex/rxjava3/core/Flowable.java
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public static <T, R> Flowable<R> combineLatest(@NonNull Iterable<? extends Publi
* are requested in a bounded manner, however, their backpressure is not enforced (the operator won't signal
* {@link MissingBackpressureException}) and may lead to {@link OutOfMemoryError} due to internal buffer bloat.</dd>
* <dt><b>Scheduler:</b></dt>
* <dd>{@code combineLatestDelayError} does not operate by default on a particular {@link Scheduler}.</dd>
* <dd>{@code combineLatestArrayDelayError} does not operate by default on a particular {@link Scheduler}.</dd>
* </dl>
*
* @param <T>
Expand All @@ -481,9 +481,9 @@ public static <T, R> Flowable<R> combineLatest(@NonNull Iterable<? extends Publi
@CheckReturnValue
@BackpressureSupport(BackpressureKind.FULL)
@NonNull
public static <T, @NonNull R> Flowable<R> combineLatestDelayError(@NonNull Publisher<? extends T>[] sources,
public static <T, @NonNull R> Flowable<R> combineLatestArrayDelayError(@NonNull Publisher<? extends T>[] sources,
@NonNull Function<? super Object[], ? extends R> combiner) {
return combineLatestDelayError(sources, combiner, bufferSize());
return combineLatestArrayDelayError(sources, combiner, bufferSize());
}

/**
Expand All @@ -509,7 +509,7 @@ public static <T, R> Flowable<R> combineLatest(@NonNull Iterable<? extends Publi
* are requested in a bounded manner, however, their backpressure is not enforced (the operator won't signal
* {@link MissingBackpressureException}) and may lead to {@link OutOfMemoryError} due to internal buffer bloat.</dd>
* <dt><b>Scheduler:</b></dt>
* <dd>{@code combineLatestDelayError} does not operate by default on a particular {@link Scheduler}.</dd>
* <dd>{@code combineLatestArrayDelayError} does not operate by default on a particular {@link Scheduler}.</dd>
* </dl>
*
* @param <T>
Expand All @@ -532,7 +532,7 @@ public static <T, R> Flowable<R> combineLatest(@NonNull Iterable<? extends Publi
@CheckReturnValue
@NonNull
@BackpressureSupport(BackpressureKind.FULL)
public static <T, @NonNull R> Flowable<R> combineLatestDelayError(@NonNull Publisher<? extends T>[] sources,
public static <T, @NonNull R> Flowable<R> combineLatestArrayDelayError(@NonNull Publisher<? extends T>[] sources,
@NonNull Function<? super Object[], ? extends R> combiner, int bufferSize) {
Objects.requireNonNull(sources, "sources is null");
Objects.requireNonNull(combiner, "combiner is null");
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/io/reactivex/rxjava3/core/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, R> Observable<R> combineLates
*
* <dl>
* <dt><b>Scheduler:</b></dt>
* <dd>{@code combineLatestDelayError} does not operate by default on a particular {@link Scheduler}.</dd>
* <dd>{@code combineLatestArrayDelayError} does not operate by default on a particular {@link Scheduler}.</dd>
* </dl>
*
* @param <T>
Expand All @@ -887,10 +887,10 @@ public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, R> Observable<R> combineLates
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.NONE)
@NonNull
public static <T, R> Observable<R> combineLatestDelayError(
public static <T, R> Observable<R> combineLatestArrayDelayError(
@NonNull ObservableSource<? extends T>[] sources,
@NonNull Function<? super Object[], ? extends R> combiner) {
return combineLatestDelayError(sources, combiner, bufferSize());
return combineLatestArrayDelayError(sources, combiner, bufferSize());
}

/**
Expand All @@ -914,7 +914,7 @@ public static <T, R> Observable<R> combineLatestDelayError(
* <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/combineLatestDelayError.png" alt="">
* <dl>
* <dt><b>Scheduler:</b></dt>
* <dd>{@code combineLatestDelayError} does not operate by default on a particular {@link Scheduler}.</dd>
* <dd>{@code combineLatestArrayDelayError} does not operate by default on a particular {@link Scheduler}.</dd>
* </dl>
*
* @param <T>
Expand All @@ -936,7 +936,7 @@ public static <T, R> Observable<R> combineLatestDelayError(
@CheckReturnValue
@NonNull
@SchedulerSupport(SchedulerSupport.NONE)
public static <T, R> Observable<R> combineLatestDelayError(@NonNull ObservableSource<? extends T>[] sources,
public static <T, R> Observable<R> combineLatestArrayDelayError(@NonNull ObservableSource<? extends T>[] sources,
@NonNull Function<? super Object[], ? extends R> combiner, int bufferSize) {
Objects.requireNonNull(sources, "sources is null");
Objects.requireNonNull(combiner, "combiner is null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ public List<Object> apply(Object[] t) throws Exception {
.test()
.assertResult(expected);

Flowable.combineLatestDelayError(sources, new Function<Object[], List<Object>>() {
Flowable.combineLatestArrayDelayError(sources, new Function<Object[], List<Object>>() {
@Override
public List<Object> apply(Object[] t) throws Exception {
return Arrays.asList(t);
Expand Down Expand Up @@ -1104,7 +1104,7 @@ public Object apply(Object[] a) throws Exception {
@SuppressWarnings("unchecked")
public void combineLatestDelayErrorArrayOfSources() {

Flowable.combineLatestDelayError(new Flowable[] {
Flowable.combineLatestArrayDelayError(new Flowable[] {
Flowable.just(1), Flowable.just(2)
}, new Function<Object[], Object>() {
@Override
Expand All @@ -1120,7 +1120,7 @@ public Object apply(Object[] a) throws Exception {
@SuppressWarnings("unchecked")
public void combineLatestDelayErrorArrayOfSourcesWithError() {

Flowable.combineLatestDelayError(new Flowable[] {
Flowable.combineLatestArrayDelayError(new Flowable[] {
Flowable.just(1), Flowable.just(2).concatWith(Flowable.<Integer>error(new TestException()))
}, new Function<Object[], Object>() {
@Override
Expand Down Expand Up @@ -1171,7 +1171,7 @@ public void combineLatestArrayEmpty() {
@SuppressWarnings("unchecked")
@Test
public void combineLatestDelayErrorEmpty() {
assertSame(Flowable.empty(), Flowable.combineLatestDelayError(new Flowable[0], Functions.<Object[]>identity(), 16));
assertSame(Flowable.empty(), Flowable.combineLatestArrayDelayError(new Flowable[0], Functions.<Object[]>identity(), 16));
}

@Test
Expand Down Expand Up @@ -1295,7 +1295,7 @@ public Object apply(Object a, Object b) throws Exception {
@SuppressWarnings("unchecked")
@Test
public void errorDelayed() {
Flowable.combineLatestDelayError(
Flowable.combineLatestArrayDelayError(
new Publisher[] { Flowable.error(new TestException()), Flowable.just(1) },
new Function<Object[], Object>() {
@Override
Expand All @@ -1312,7 +1312,7 @@ public Object apply(Object[] a) throws Exception {
@SuppressWarnings("unchecked")
@Test
public void errorDelayed2() {
Flowable.combineLatestDelayError(
Flowable.combineLatestArrayDelayError(
new Publisher[] { Flowable.error(new TestException()).startWithItem(1), Flowable.empty() },
new Function<Object[], Object>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ public Object apply(Object[] a) throws Exception {
@SuppressWarnings("unchecked")
public void combineLatestDelayErrorArrayOfSources() {

Observable.combineLatestDelayError(new ObservableSource[] {
Observable.combineLatestArrayDelayError(new ObservableSource[] {
Observable.just(1), Observable.just(2)
}, new Function<Object[], Object>() {
@Override
Expand All @@ -805,7 +805,7 @@ public Object apply(Object[] a) throws Exception {
@SuppressWarnings("unchecked")
public void combineLatestDelayErrorArrayOfSourcesWithError() {

Observable.combineLatestDelayError(new ObservableSource[] {
Observable.combineLatestArrayDelayError(new ObservableSource[] {
Observable.just(1), Observable.just(2).concatWith(Observable.<Integer>error(new TestException()))
}, new Function<Object[], Object>() {
@Override
Expand Down Expand Up @@ -856,7 +856,7 @@ public void combineLatestArrayEmpty() {
@SuppressWarnings("unchecked")
@Test
public void combineLatestDelayErrorEmpty() {
assertSame(Observable.empty(), Observable.combineLatestDelayError(new ObservableSource[0], Functions.<Object[]>identity(), 16));
assertSame(Observable.empty(), Observable.combineLatestArrayDelayError(new ObservableSource[0], Functions.<Object[]>identity(), 16));
}

@Test
Expand Down Expand Up @@ -923,7 +923,7 @@ public Object apply(Object a, Object b) throws Exception {
@SuppressWarnings("unchecked")
@Test
public void errorDelayed() {
Observable.combineLatestDelayError(
Observable.combineLatestArrayDelayError(
new ObservableSource[] { Observable.error(new TestException()), Observable.just(1) },
new Function<Object[], Object>() {
@Override
Expand All @@ -940,7 +940,7 @@ public Object apply(Object[] a) throws Exception {
@SuppressWarnings("unchecked")
@Test
public void errorDelayed2() {
Observable.combineLatestDelayError(
Observable.combineLatestArrayDelayError(
new ObservableSource[] { Observable.error(new TestException()).startWithItem(1), Observable.empty() },
new Function<Object[], Object>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class CombineLatestArrayDelayErrorTckTest extends BaseTck<Long> {
@Override
public Publisher<Long> createPublisher(long elements) {
return
Flowable.combineLatestDelayError(
Flowable.combineLatestArrayDelayError(
new Publisher[] { Flowable.just(1L), Flowable.fromIterable(iterate(elements)) },
new Function<Object[], Long>() {
@Override
Expand Down