Skip to content

Commit 236f59d

Browse files
author
jmhofer
committed
Cleaned up all empty @return tags, too.
1 parent bf5df77 commit 236f59d

File tree

7 files changed

+27
-27
lines changed

7 files changed

+27
-27
lines changed

rxjava-core/src/main/java/rx/Notification.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ public boolean hasException() {
9696
}
9797

9898
/**
99-
* The kind of notification: OnNext, OnError, OnCompleted
99+
* Retrieves the kind of the notification: OnNext, OnError, OnCompleted
100100
*
101-
* @return
101+
* @return the kind of the notification: OnNext, OnError, OnCompleted
102102
*/
103103
public Kind getKind() {
104104
return kind;

rxjava-core/src/main/java/rx/Observable.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,24 +2010,24 @@ public static <T> Observable<T> takeLast(final Observable<T> items, final int co
20102010
}
20112011

20122012
/**
2013-
* Returns a specified number of contiguous values from the start of an observable sequence.
2013+
* Returns the values from the start of an observable sequence while a given predicate remains true.
20142014
*
20152015
* @param items
20162016
* @param predicate
20172017
* a function to test each source element for a condition
2018-
* @return
2018+
* @return the values from the start of the given sequence
20192019
*/
20202020
public static <T> Observable<T> takeWhile(final Observable<T> items, Func1<T, Boolean> predicate) {
20212021
return create(OperationTakeWhile.takeWhile(items, predicate));
20222022
}
20232023

20242024
/**
2025-
* Returns a specified number of contiguous values from the start of an observable sequence.
2025+
* Returns the values from the start of an observable sequence while a given predicate remains true.
20262026
*
20272027
* @param items
20282028
* @param predicate
20292029
* a function to test each source element for a condition
2030-
* @return
2030+
* @return the values from the start of the given sequence
20312031
*/
20322032
public static <T> Observable<T> takeWhile(final Observable<T> items, Object predicate) {
20332033
@SuppressWarnings("rawtypes")
@@ -2047,7 +2047,7 @@ public Boolean call(T t) {
20472047
* @param items
20482048
* @param predicate
20492049
* a function to test each element for a condition; the second parameter of the function represents the index of the source element; otherwise, false.
2050-
* @return
2050+
* @return the values from the start of the given sequence
20512051
*/
20522052
public static <T> Observable<T> takeWhileWithIndex(final Observable<T> items, Func2<T, Integer, Boolean> predicate) {
20532053
return create(OperationTakeWhile.takeWhileWithIndex(items, predicate));
@@ -2388,7 +2388,7 @@ public static <T> Observable<T> toObservable(T... items) {
23882388
* @param sequence
23892389
* @throws ClassCastException
23902390
* if T objects do not implement Comparable
2391-
* @return
2391+
* @return an observable containing the sorted list
23922392
*/
23932393
public static <T> Observable<List<T>> toSortedList(Observable<T> sequence) {
23942394
return create(OperationToObservableSortedList.toSortedList(sequence));
@@ -2401,7 +2401,7 @@ public static <T> Observable<List<T>> toSortedList(Observable<T> sequence) {
24012401
*
24022402
* @param sequence
24032403
* @param sortFunction
2404-
* @return
2404+
* @return an observable containing the sorted list
24052405
*/
24062406
public static <T> Observable<List<T>> toSortedList(Observable<T> sequence, Func2<T, T, Integer> sortFunction) {
24072407
return create(OperationToObservableSortedList.toSortedList(sequence, sortFunction));
@@ -2414,7 +2414,7 @@ public static <T> Observable<List<T>> toSortedList(Observable<T> sequence, Func2
24142414
*
24152415
* @param sequence
24162416
* @param sortFunction
2417-
* @return
2417+
* @return an observable containing the sorted list
24182418
*/
24192419
public static <T> Observable<List<T>> toSortedList(Observable<T> sequence, final Object sortFunction) {
24202420
@SuppressWarnings("rawtypes")
@@ -3421,18 +3421,18 @@ public Observable<T> take(final int num) {
34213421
*
34223422
* @param predicate
34233423
* a function to test each source element for a condition
3424-
* @return
3424+
* @return the values from the start of the given sequence
34253425
*/
34263426
public Observable<T> takeWhile(final Func1<T, Boolean> predicate) {
34273427
return takeWhile(this, predicate);
34283428
}
34293429

34303430
/**
3431-
* Returns a specified number of contiguous values from the start of an observable sequence.
3431+
* Returns an Observable that items emitted by the source Observable as long as a specified condition is true.
34323432
*
34333433
* @param predicate
34343434
* a function to test each source element for a condition
3435-
* @return
3435+
* @return the values from the start of the given sequence
34363436
*/
34373437
public Observable<T> takeWhile(final Object predicate) {
34383438
return takeWhile(this, predicate);
@@ -3443,7 +3443,7 @@ public Observable<T> takeWhile(final Object predicate) {
34433443
*
34443444
* @param predicate
34453445
* a function to test each element for a condition; the second parameter of the function represents the index of the source element; otherwise, false.
3446-
* @return
3446+
* @return the values from the start of the given sequence
34473447
*/
34483448
public Observable<T> takeWhileWithIndex(final Func2<T, Integer, Boolean> predicate) {
34493449
return takeWhileWithIndex(this, predicate);
@@ -3454,7 +3454,7 @@ public Observable<T> takeWhileWithIndex(final Func2<T, Integer, Boolean> predica
34543454
*
34553455
* @param predicate
34563456
* a function to test each element for a condition; the second parameter of the function represents the index of the source element; otherwise, false.
3457-
* @return
3457+
* @return the values from the start of the given sequence
34583458
*/
34593459
public Observable<T> takeWhileWithIndex(final Object predicate) {
34603460
return takeWhileWithIndex(this, predicate);
@@ -3525,7 +3525,7 @@ public Observable<List<T>> toList() {
35253525
*
35263526
* @throws ClassCastException
35273527
* if T objects do not implement Comparable
3528-
* @return
3528+
* @return an observable containing the sorted list
35293529
*/
35303530
public Observable<List<T>> toSortedList() {
35313531
return toSortedList(this);
@@ -3537,7 +3537,7 @@ public Observable<List<T>> toSortedList() {
35373537
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/toSortedList.png">
35383538
*
35393539
* @param sortFunction
3540-
* @return
3540+
* @return an observable containing the sorted list
35413541
*/
35423542
public Observable<List<T>> toSortedList(Func2<T, T, Integer> sortFunction) {
35433543
return toSortedList(this, sortFunction);
@@ -3549,7 +3549,7 @@ public Observable<List<T>> toSortedList(Func2<T, T, Integer> sortFunction) {
35493549
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/toSortedList.png">
35503550
*
35513551
* @param sortFunction
3552-
* @return
3552+
* @return an observable containing the sorted list
35533553
*/
35543554
public Observable<List<T>> toSortedList(final Object sortFunction) {
35553555
return toSortedList(this, sortFunction);
@@ -3636,7 +3636,7 @@ public Iterable<T> mostRecent(T initialValue) {
36363636
* NOTE: If strong reasons for not depending on package names comes up then the implementation of this method can change to looking for a marker interface.
36373637
*
36383638
* @param f
3639-
* @return
3639+
* @return {@code true} if the given function is an internal implementation, and {@code false} otherwise.
36403640
*/
36413641
private boolean isInternalImplementation(Object o) {
36423642
if (o == null) {

rxjava-core/src/main/java/rx/operators/OperationSkip.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public final class OperationSkip {
3737
*
3838
* @param items
3939
* @param num
40-
* @return
40+
* @return the observable sequence starting after a number of skipped values
4141
*
4242
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229847(v=vs.103).aspx">Observable.Skip(TSource) Method</a>
4343
*/

rxjava-core/src/main/java/rx/operators/OperationSynchronize.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public final class OperationSynchronize<T> {
5252
*
5353
* @param observable
5454
* @param <T>
55-
* @return
55+
* @return the wrapped synchronized observable sequence
5656
*/
5757
public static <T> Func1<Observer<T>, Subscription> synchronize(Observable<T> observable) {
5858
return new Synchronize<T>(observable);

rxjava-core/src/main/java/rx/operators/OperationTake.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public final class OperationTake {
4242
*
4343
* @param items
4444
* @param num
45-
* @return
45+
* @return the specified number of contiguous values from the start of the given observable sequence
4646
*/
4747
public static <T> Func1<Observer<T>, Subscription> take(final Observable<T> items, final int num) {
4848
// wrap in a Func so that if a chain is built up, then asynchronously subscribed to twice we will have 2 instances of Take<T> rather than 1 handing both, which is not thread-safe.

rxjava-core/src/main/java/rx/operators/OperationTakeWhile.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
public final class OperationTakeWhile {
4141

4242
/**
43-
* Returns a specified number of contiguous values from the start of an observable sequence.
43+
* Returns values from an observable sequence as long as a specified condition is true, and then skips the remaining values.
4444
*
4545
* @param items
4646
* @param predicate
4747
* a function to test each source element for a condition
48-
* @return
48+
* @return sequence of observable values from the start as long as the predicate is true
4949
*/
5050
public static <T> Func1<Observer<T>, Subscription> takeWhile(final Observable<T> items, final Func1<T, Boolean> predicate) {
5151
return takeWhileWithIndex(items, OperationTakeWhile.<T> skipIndex(predicate));
@@ -57,7 +57,7 @@ public static <T> Func1<Observer<T>, Subscription> takeWhile(final Observable<T>
5757
* @param items
5858
* @param predicate
5959
* a function to test each element for a condition; the second parameter of the function represents the index of the source element; otherwise, false.
60-
* @return
60+
* @return sequence of observable values from the start as long as the predicate is true
6161
*/
6262
public static <T> Func1<Observer<T>, Subscription> takeWhileWithIndex(final Observable<T> items, final Func2<T, Integer, Boolean> predicate) {
6363
// wrap in a Func so that if a chain is built up, then asynchronously subscribed to twice we will have 2 instances of Take<T> rather than 1 handing both, which is not thread-safe.

rxjava-core/src/main/java/rx/operators/OperationToObservableSortedList.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public final class OperationToObservableSortedList<T> {
4747
* @param sequence
4848
* @throws ClassCastException
4949
* if T objects do not implement Comparable
50-
* @return
50+
* @return an observable containing the sorted list
5151
*/
5252
public static <T> Func1<Observer<List<T>>, Subscription> toSortedList(Observable<T> sequence) {
5353
return new ToObservableSortedList<T>(sequence);
@@ -58,7 +58,7 @@ public static <T> Func1<Observer<List<T>>, Subscription> toSortedList(Observable
5858
*
5959
* @param sequence
6060
* @param sortFunction
61-
* @return
61+
* @return an observable containing the sorted list
6262
*/
6363
public static <T> Func1<Observer<List<T>>, Subscription> toSortedList(Observable<T> sequence, Func2<T, T, Integer> sortFunction) {
6464
return new ToObservableSortedList<T>(sequence, sortFunction);

0 commit comments

Comments
 (0)