@@ -5141,28 +5141,28 @@ public final Observable<T> lastOrDefault(T defaultValue, Func1<? super T, Boolea
5141
5141
}
5142
5142
5143
5143
/**
5144
- * Returns an Observable that emits only the first {@code num } items emitted by the source Observable.
5144
+ * Returns an Observable that emits only the first {@code count } items emitted by the source Observable.
5145
5145
* <p>
5146
5146
* Alias of {@link #take(int)} to match Java 8 Stream API naming convention.
5147
5147
* <p>
5148
5148
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/take.png" alt="">
5149
5149
* <p>
5150
5150
* This method returns an Observable that will invoke a subscribing {@link Observer}'s
5151
- * {@link Observer#onNext onNext} function a maximum of {@code num } times before invoking
5151
+ * {@link Observer#onNext onNext} function a maximum of {@code count } times before invoking
5152
5152
* {@link Observer#onCompleted onCompleted}.
5153
5153
* <dl>
5154
5154
* <dt><b>Scheduler:</b></dt>
5155
5155
* <dd>{@code limit} does not operate by default on a particular {@link Scheduler}.</dd>
5156
5156
* </dl>
5157
5157
*
5158
- * @param num
5158
+ * @param count
5159
5159
* the maximum number of items to emit
5160
- * @return an Observable that emits only the first {@code num } items emitted by the source Observable, or
5161
- * all of the items from the source Observable if that Observable emits fewer than {@code num } items
5160
+ * @return an Observable that emits only the first {@code count } items emitted by the source Observable, or
5161
+ * all of the items from the source Observable if that Observable emits fewer than {@code count } items
5162
5162
* @see <a href="http://reactivex.io/documentation/operators/take.html">ReactiveX operators documentation: Take</a>
5163
5163
*/
5164
- public final Observable <T > limit (int num ) {
5165
- return take (num );
5164
+ public final Observable <T > limit (int count ) {
5165
+ return take (count );
5166
5166
}
5167
5167
5168
5168
/**
@@ -6894,7 +6894,7 @@ public final Observable<T> singleOrDefault(T defaultValue, Func1<? super T, Bool
6894
6894
}
6895
6895
6896
6896
/**
6897
- * Returns an Observable that skips the first {@code num } items emitted by the source Observable and emits
6897
+ * Returns an Observable that skips the first {@code count } items emitted by the source Observable and emits
6898
6898
* the remainder.
6899
6899
* <p>
6900
6900
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/skip.png" alt="">
@@ -6903,14 +6903,14 @@ public final Observable<T> singleOrDefault(T defaultValue, Func1<? super T, Bool
6903
6903
* <dd>This version of {@code skip} does not operate by default on a particular {@link Scheduler}.</dd>
6904
6904
* </dl>
6905
6905
*
6906
- * @param num
6906
+ * @param count
6907
6907
* the number of items to skip
6908
6908
* @return an Observable that is identical to the source Observable except that it does not emit the first
6909
- * {@code num } items that the source Observable emits
6909
+ * {@code count } items that the source Observable emits
6910
6910
* @see <a href="http://reactivex.io/documentation/operators/skip.html">ReactiveX operators documentation: Skip</a>
6911
6911
*/
6912
- public final Observable <T > skip (int num ) {
6913
- return lift (new OperatorSkip <T >(num ));
6912
+ public final Observable <T > skip (int count ) {
6913
+ return lift (new OperatorSkip <T >(count ));
6914
6914
}
6915
6915
6916
6916
/**
@@ -7766,26 +7766,27 @@ public final <R> Observable<R> switchMap(Func1<? super T, ? extends Observable<?
7766
7766
}
7767
7767
7768
7768
/**
7769
- * Returns an Observable that emits only the first {@code num} items emitted by the source Observable.
7769
+ * Returns an Observable that emits only the first {@code count} items emitted by the source Observable. If the source emits fewer than
7770
+ * {@code count} items then all of its items are emitted.
7770
7771
* <p>
7771
7772
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/take.png" alt="">
7772
7773
* <p>
7773
7774
* This method returns an Observable that will invoke a subscribing {@link Observer}'s
7774
- * {@link Observer#onNext onNext} function a maximum of {@code num } times before invoking
7775
+ * {@link Observer#onNext onNext} function a maximum of {@code count } times before invoking
7775
7776
* {@link Observer#onCompleted onCompleted}.
7776
7777
* <dl>
7777
7778
* <dt><b>Scheduler:</b></dt>
7778
7779
* <dd>This version of {@code take} does not operate by default on a particular {@link Scheduler}.</dd>
7779
7780
* </dl>
7780
7781
*
7781
- * @param num
7782
+ * @param count
7782
7783
* the maximum number of items to emit
7783
- * @return an Observable that emits only the first {@code num } items emitted by the source Observable, or
7784
- * all of the items from the source Observable if that Observable emits fewer than {@code num } items
7784
+ * @return an Observable that emits only the first {@code count } items emitted by the source Observable, or
7785
+ * all of the items from the source Observable if that Observable emits fewer than {@code count } items
7785
7786
* @see <a href="http://reactivex.io/documentation/operators/take.html">ReactiveX operators documentation: Take</a>
7786
7787
*/
7787
- public final Observable <T > take (final int num ) {
7788
- return lift (new OperatorTake <T >(num ));
7788
+ public final Observable <T > take (final int count ) {
7789
+ return lift (new OperatorTake <T >(count ));
7789
7790
}
7790
7791
7791
7792
/**
@@ -7855,7 +7856,8 @@ public final Observable<T> takeFirst(Func1<? super T, Boolean> predicate) {
7855
7856
}
7856
7857
7857
7858
/**
7858
- * Returns an Observable that emits only the last {@code count} items emitted by the source Observable.
7859
+ * Returns an Observable that emits at most the last {@code count} items emitted by the source Observable. If the source emits fewer than
7860
+ * {@code count} items then all of its items are emitted.
7859
7861
* <p>
7860
7862
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/takeLast.n.png" alt="">
7861
7863
* <dl>
@@ -7864,9 +7866,9 @@ public final Observable<T> takeFirst(Func1<? super T, Boolean> predicate) {
7864
7866
* </dl>
7865
7867
*
7866
7868
* @param count
7867
- * the number of items to emit from the end of the sequence of items emitted by the source
7869
+ * the maximum number of items to emit from the end of the sequence of items emitted by the source
7868
7870
* Observable
7869
- * @return an Observable that emits only the last {@code count} items emitted by the source Observable
7871
+ * @return an Observable that emits at most the last {@code count} items emitted by the source Observable
7870
7872
* @throws IndexOutOfBoundsException
7871
7873
* if {@code count} is less than zero
7872
7874
* @see <a href="http://reactivex.io/documentation/operators/takelast.html">ReactiveX operators documentation: TakeLast</a>
@@ -7882,7 +7884,7 @@ else if (count == 1 )
7882
7884
7883
7885
/**
7884
7886
* Returns an Observable that emits at most a specified number of items from the source Observable that were
7885
- * emitted in a specified window of time before the Observable completed.
7887
+ * emitted in a specified window of time before the Observable completed.
7886
7888
* <p>
7887
7889
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/takeLast.tn.png" alt="">
7888
7890
* <dl>
@@ -7983,8 +7985,8 @@ public final Observable<T> takeLast(long time, TimeUnit unit, Scheduler schedule
7983
7985
}
7984
7986
7985
7987
/**
7986
- * Returns an Observable that emits a single List containing the last {@code count} elements emitted by the
7987
- * source Observable.
7988
+ * Returns an Observable that emits a single List containing at most the last {@code count} elements emitted by the
7989
+ * source Observable. If the source emits fewer than {@code count} items then the emitted List will contain all of the source emissions.
7988
7990
* <p>
7989
7991
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/takeLastBuffer.png" alt="">
7990
7992
* <dl>
@@ -7993,8 +7995,8 @@ public final Observable<T> takeLast(long time, TimeUnit unit, Scheduler schedule
7993
7995
* </dl>
7994
7996
*
7995
7997
* @param count
7996
- * the number of items to emit in the list
7997
- * @return an Observable that emits a single list containing the last {@code count} elements emitted by the
7998
+ * the maximum number of items to emit in the list
7999
+ * @return an Observable that emits a single list containing at most the last {@code count} elements emitted by the
7998
8000
* source Observable
7999
8001
* @see <a href="http://reactivex.io/documentation/operators/takelast.html">ReactiveX operators documentation: TakeLast</a>
8000
8002
*/
0 commit comments