diff --git a/src/main/java/rx/Observable.java b/src/main/java/rx/Observable.java index ebe421a120..02142ec6ce 100644 --- a/src/main/java/rx/Observable.java +++ b/src/main/java/rx/Observable.java @@ -119,7 +119,7 @@ public interface Operator extends Func1, Subscriber< * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number) */ @Experimental - public R x(Func1, ? extends R> conversion) { + public R extend(Func1, ? extends R> conversion) { return conversion.call(new OnSubscribe() { @Override public void call(Subscriber subscriber) { diff --git a/src/test/java/rx/ObservableConversionTest.java b/src/test/java/rx/ObservableConversionTest.java index 543c44780b..31880ea599 100644 --- a/src/test/java/rx/ObservableConversionTest.java +++ b/src/test/java/rx/ObservableConversionTest.java @@ -155,7 +155,7 @@ public void onNext(String t) { }}); List crewOfBattlestarGalactica = Arrays.asList(new Object[] {"William Adama", "Laura Roslin", "Lee Adama", new Cylon()}); Observable.from(crewOfBattlestarGalactica) - .x(new ConvertToCylonDetector()) + .extend(new ConvertToCylonDetector()) .beep(new Func1(){ @Override public Boolean call(Object t) { @@ -199,7 +199,7 @@ public Integer call(Integer k) { return i + k; }}); }}) - .x(new Func1, ConcurrentLinkedQueue>() { + .extend(new Func1, ConcurrentLinkedQueue>() { @Override public ConcurrentLinkedQueue call(OnSubscribe onSubscribe) { final ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); diff --git a/src/test/java/rx/ObservableTests.java b/src/test/java/rx/ObservableTests.java index 55e43896d3..d59e8c41a9 100644 --- a/src/test/java/rx/ObservableTests.java +++ b/src/test/java/rx/ObservableTests.java @@ -1161,7 +1161,7 @@ public void testForEachWithNull() { public void testExtend() { final TestSubscriber subscriber = new TestSubscriber(); final Object value = new Object(); - Observable.just(value).x(new Func1,Object>(){ + Observable.just(value).extend(new Func1,Object>(){ @Override public Object call(OnSubscribe onSubscribe) { onSubscribe.call(subscriber);