Skip to content

Commit 300a1df

Browse files
Merge pull request ReactiveX#232 from mairbek/naming
Corrected naming
2 parents e119a88 + 3731ee4 commit 300a1df

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import rx.operators.OperationConcat;
4242
import rx.operators.OperationDefer;
4343
import rx.operators.OperationDematerialize;
44+
import rx.operators.OperationGroupBy;
4445
import rx.operators.OperationFilter;
4546
import rx.operators.OperationFinally;
4647
import rx.operators.OperationMap;
@@ -59,16 +60,15 @@
5960
import rx.operators.OperationSynchronize;
6061
import rx.operators.OperationTake;
6162
import rx.operators.OperationTakeLast;
63+
import rx.operators.OperationTakeUntil;
6264
import rx.operators.OperationTakeWhile;
65+
import rx.operators.OperationToIterator;
6366
import rx.operators.OperationToObservableFuture;
6467
import rx.operators.OperationToObservableIterable;
6568
import rx.operators.OperationToObservableList;
6669
import rx.operators.OperationToObservableSortedList;
6770
import rx.operators.OperationWhere;
6871
import rx.operators.OperationZip;
69-
import rx.operators.OperatorGroupBy;
70-
import rx.operators.OperatorTakeUntil;
71-
import rx.operators.OperatorToIterator;
7272
import rx.plugins.RxJavaErrorHandler;
7373
import rx.plugins.RxJavaObservableExecutionHook;
7474
import rx.plugins.RxJavaPlugins;
@@ -1303,7 +1303,7 @@ public static <T> Observable<T> merge(Observable<T>... source) {
13031303
* @return An observable sequence containing the elements of the source sequence up to the point the other sequence interrupted further propagation.
13041304
*/
13051305
public static <T, E> Observable<T> takeUntil(final Observable<T> source, final Observable<E> other) {
1306-
return OperatorTakeUntil.takeUntil(source, other);
1306+
return OperationTakeUntil.takeUntil(source, other);
13071307
}
13081308

13091309
/**
@@ -1355,7 +1355,7 @@ public static <T> Observable<T> finallyDo(Observable<T> source, Action0 action)
13551355
* @return an observable of observable groups, each of which corresponds to a unique key value, containing all elements that share that same key value.
13561356
*/
13571357
public static <K, T, R> Observable<GroupedObservable<K, R>> groupBy(Observable<T> source, final Func1<T, K> keySelector, final Func1<T, R> elementSelector) {
1358-
return create(OperatorGroupBy.groupBy(source, keySelector, elementSelector));
1358+
return create(OperationGroupBy.groupBy(source, keySelector, elementSelector));
13591359
}
13601360

13611361
/**
@@ -1372,7 +1372,7 @@ public static <K, T, R> Observable<GroupedObservable<K, R>> groupBy(Observable<T
13721372
* @return an observable of observable groups, each of which corresponds to a unique key value, containing all elements that share that same key value.
13731373
*/
13741374
public static <K, T> Observable<GroupedObservable<K, T>> groupBy(Observable<T> source, final Func1<T, K> keySelector) {
1375-
return create(OperatorGroupBy.groupBy(source, keySelector));
1375+
return create(OperationGroupBy.groupBy(source, keySelector));
13761376
}
13771377

13781378
/**
@@ -2041,7 +2041,7 @@ public Iterator<T> iterator() {
20412041
* @return the iterator that could be used to iterate over the elements of the observable.
20422042
*/
20432043
public static <T> Iterator<T> getIterator(Observable<T> that) {
2044-
return OperatorToIterator.toIterator(that);
2044+
return OperationToIterator.toIterator(that);
20452045
}
20462046

20472047
/**

rxjava-core/src/main/java/rx/operators/OperatorGroupBy.java renamed to rxjava-core/src/main/java/rx/operators/OperationGroupBy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import rx.util.functions.Func1;
3434
import rx.util.functions.Functions;
3535

36-
public final class OperatorGroupBy {
36+
public final class OperationGroupBy {
3737

3838
public static <K, T, R> Func1<Observer<GroupedObservable<K, R>>, Subscription> groupBy(Observable<T> source, final Func1<T, K> keySelector, final Func1<T, R> elementSelector) {
3939

rxjava-core/src/main/java/rx/operators/OperatorTakeUntil.java renamed to rxjava-core/src/main/java/rx/operators/OperationTakeUntil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import rx.Subscription;
2525
import rx.util.functions.Func1;
2626

27-
public class OperatorTakeUntil {
27+
public class OperationTakeUntil {
2828

2929
/**
3030
* Returns the values from the source observable sequence until the other observable sequence produces a value.

rxjava-core/src/main/java/rx/operators/OperatorToIterator.java renamed to rxjava-core/src/main/java/rx/operators/OperationToIterator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* @see https://github.com/Netflix/RxJava/issues/50
2121
*/
22-
public class OperatorToIterator {
22+
public class OperationToIterator {
2323

2424
/**
2525
* Returns an iterator that iterates all values of the observable.

0 commit comments

Comments
 (0)