@@ -14598,20 +14598,23 @@ public final Flowable<T> sorted(Comparator<? super T> sortFunction) {
14598
14598
* is expected to honor backpressure as well. If it violates this rule, it <em>may</em> throw an
14599
14599
* {@code IllegalStateException} when the source {@code Publisher} completes.</dd>
14600
14600
* <dt><b>Scheduler:</b></dt>
14601
- * <dd>{@code startWith } does not operate by default on a particular {@link Scheduler}.</dd>
14601
+ * <dd>{@code startWithIterable } does not operate by default on a particular {@link Scheduler}.</dd>
14602
14602
* </dl>
14603
14603
*
14604
14604
* @param items
14605
14605
* an Iterable that contains the items you want the modified Publisher to emit first
14606
14606
* @return a Flowable that emits the items in the specified {@link Iterable} and then emits the items
14607
14607
* emitted by the source Publisher
14608
14608
* @see <a href="http://reactivex.io/documentation/operators/startwith.html">ReactiveX operators documentation: StartWith</a>
14609
+ * @see #startWithArray(Object...)
14610
+ * @see #startWithItem(Object)
14611
+ * @since 3.0.0
14609
14612
*/
14610
14613
@SuppressWarnings("unchecked")
14611
14614
@CheckReturnValue
14612
14615
@BackpressureSupport(BackpressureKind.FULL)
14613
14616
@SchedulerSupport(SchedulerSupport.NONE)
14614
- public final Flowable<T> startWith (Iterable<? extends T> items) {
14617
+ public final Flowable<T> startWithIterable (Iterable<? extends T> items) {
14615
14618
return concatArray(fromIterable(items), this);
14616
14619
}
14617
14620
@@ -14656,23 +14659,26 @@ public final Flowable<T> startWith(Publisher<? extends T> other) {
14656
14659
* is expected to honor backpressure as well. If it violates this rule, it <em>may</em> throw an
14657
14660
* {@code IllegalStateException} when the source {@code Publisher} completes.</dd>
14658
14661
* <dt><b>Scheduler:</b></dt>
14659
- * <dd>{@code startWith } does not operate by default on a particular {@link Scheduler}.</dd>
14662
+ * <dd>{@code startWithItem } does not operate by default on a particular {@link Scheduler}.</dd>
14660
14663
* </dl>
14661
14664
*
14662
- * @param value
14665
+ * @param item
14663
14666
* the item to emit first
14664
14667
* @return a Flowable that emits the specified item before it begins to emit items emitted by the source
14665
14668
* Publisher
14666
14669
* @see <a href="http://reactivex.io/documentation/operators/startwith.html">ReactiveX operators documentation: StartWith</a>
14670
+ * @see #startWithArray(Object...)
14671
+ * @see #startWithIterable(Iterable)
14672
+ * @since 3.0.0
14667
14673
*/
14668
14674
@SuppressWarnings("unchecked")
14669
14675
@CheckReturnValue
14670
14676
@NonNull
14671
14677
@BackpressureSupport(BackpressureKind.FULL)
14672
14678
@SchedulerSupport(SchedulerSupport.NONE)
14673
- public final Flowable<T> startWith (T value ) {
14674
- ObjectHelper.requireNonNull(value , "value is null");
14675
- return concatArray(just(value ), this);
14679
+ public final Flowable<T> startWithItem (T item ) {
14680
+ ObjectHelper.requireNonNull(item , "item is null");
14681
+ return concatArray(just(item ), this);
14676
14682
}
14677
14683
14678
14684
/**
@@ -14694,6 +14700,8 @@ public final Flowable<T> startWith(T value) {
14694
14700
* @return a Flowable that emits the specified items before it begins to emit items emitted by the source
14695
14701
* Publisher
14696
14702
* @see <a href="http://reactivex.io/documentation/operators/startwith.html">ReactiveX operators documentation: StartWith</a>
14703
+ * @see #startWithItem(Object)
14704
+ * @see #startWithIterable(Iterable)
14697
14705
*/
14698
14706
@SuppressWarnings("unchecked")
14699
14707
@CheckReturnValue
0 commit comments