File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
src/main/java/io/reactivex/rxjava3/core Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -7475,8 +7475,10 @@ public final Flowable<T> cacheWithInitialCapacity(int initialCapacity) {
74757475 }
74767476
74777477 /**
7478- * Returns a {@code Flowable} that emits the items emitted by the current {@code Flowable}, converted to the specified
7479- * type.
7478+ * Returns a {@code Flowable} that emits the upstream items while
7479+ * they can be cast via {@link Class#cast(Object)} until the upstream terminates,
7480+ * or until the upstream signals an item which can't be cast,
7481+ * resulting in a {@link ClassCastException} to be signaled to the downstream.
74807482 * <p>
74817483 * <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/cast.v3.png" alt="">
74827484 * <dl>
@@ -7489,8 +7491,7 @@ public final Flowable<T> cacheWithInitialCapacity(int initialCapacity) {
74897491 *
74907492 * @param <U> the output value type cast to
74917493 * @param clazz
7492- * the target class type that {@code cast} will cast the items emitted by the current {@code Flowable}
7493- * into before emitting them from the resulting {@code Flowable}
7494+ * the target class to use to try and cast the upstream items into
74947495 * @return the new {@code Flowable} instance
74957496 * @throws NullPointerException if {@code clazz} is {@code null}
74967497 * @see <a href="http://reactivex.io/documentation/operators/map.html">ReactiveX operators documentation: Map</a>
Original file line number Diff line number Diff line change @@ -6668,8 +6668,10 @@ public final Observable<T> cacheWithInitialCapacity(int initialCapacity) {
66686668 }
66696669
66706670 /**
6671- * Returns an {@code Observable} that emits the items emitted by the current {@code Observable}, converted to the specified
6672- * type.
6671+ * Returns an {@code Observable} that emits the upstream items while
6672+ * they can be cast via {@link Class#cast(Object)} until the upstream terminates,
6673+ * or until the upstream signals an item which can't be cast,
6674+ * resulting in a {@link ClassCastException} to be signaled to the downstream.
66736675 * <p>
66746676 * <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/cast.v3.png" alt="">
66756677 * <dl>
@@ -6679,8 +6681,7 @@ public final Observable<T> cacheWithInitialCapacity(int initialCapacity) {
66796681 *
66806682 * @param <U> the output value type cast to
66816683 * @param clazz
6682- * the target class type that {@code cast} will cast the items emitted by the current {@code Observable}
6683- * into before emitting them from the resulting {@code Observable}
6684+ * the target class to use to try and cast the upstream items into
66846685 * @return the new {@code Observable} instance
66856686 * @throws NullPointerException if {@code clazz} is {@code null}
66866687 * @see <a href="http://reactivex.io/documentation/operators/map.html">ReactiveX operators documentation: Map</a>
You can’t perform that action at this time.
0 commit comments