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