Skip to content

Commit add2812

Browse files
thiyagu-7akarnokd
authored andcommitted
Improving Javadoc of flattenAsFlowable and flattenAsObservable methods (#6276) (#6408)
1 parent 184a17b commit add2812

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/main/java/io/reactivex/Maybe.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3062,8 +3062,8 @@ public final <U, R> Maybe<R> flatMap(Function<? super T, ? extends MaybeSource<?
30623062
}
30633063

30643064
/**
3065-
* Returns a Flowable that merges each item emitted by the source Maybe with the values in an
3066-
* Iterable corresponding to that item that is generated by a selector.
3065+
* Maps the success value of the upstream {@link Maybe} into an {@link Iterable} and emits its items as a
3066+
* {@link Flowable} sequence.
30673067
* <p>
30683068
* <img width="640" height="373" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/flattenAsFlowable.png" alt="">
30693069
* <dl>
@@ -3091,7 +3091,8 @@ public final <U> Flowable<U> flattenAsFlowable(final Function<? super T, ? exten
30913091
}
30923092

30933093
/**
3094-
* Returns an Observable that maps a success value into an Iterable and emits its items.
3094+
* Maps the success value of the upstream {@link Maybe} into an {@link Iterable} and emits its items as an
3095+
* {@link Observable} sequence.
30953096
* <p>
30963097
* <img width="640" height="373" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/flattenAsObservable.png" alt="">
30973098
* <dl>

src/main/java/io/reactivex/Single.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2711,8 +2711,8 @@ public final <R> Flowable<R> flatMapPublisher(Function<? super T, ? extends Publ
27112711
}
27122712

27132713
/**
2714-
* Returns a Flowable that merges each item emitted by the source Single with the values in an
2715-
* Iterable corresponding to that item that is generated by a selector.
2714+
* Maps the success value of the upstream {@link Single} into an {@link Iterable} and emits its items as a
2715+
* {@link Flowable} sequence.
27162716
* <p>
27172717
* <img width="640" height="373" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/flattenAsFlowable.png" alt="">
27182718
* <dl>
@@ -2740,7 +2740,8 @@ public final <U> Flowable<U> flattenAsFlowable(final Function<? super T, ? exten
27402740
}
27412741

27422742
/**
2743-
* Returns an Observable that maps a success value into an Iterable and emits its items.
2743+
* Maps the success value of the upstream {@link Single} into an {@link Iterable} and emits its items as an
2744+
* {@link Observable} sequence.
27442745
* <p>
27452746
* <img width="640" height="373" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/flattenAsObservable.png" alt="">
27462747
* <dl>

0 commit comments

Comments
 (0)