@@ -44,26 +44,6 @@ public abstract class Flowable<T> implements Publisher<T> {
4444 static {
4545 BUFFER_SIZE = Math .max (16 , Integer .getInteger ("rx2.buffer-size" , 128 ));
4646 }
47-
48- /**
49- * Interface to map/wrap a downstream subscriber to an upstream subscriber.
50- *
51- * @param <Downstream> the value type of the downstream
52- * @param <Upstream> the value type of the upstream
53- */
54- public interface Operator <Downstream , Upstream > extends Function <Subscriber <? super Downstream >, Subscriber <? super Upstream >> {
55-
56- }
57-
58- /**
59- * Interface to compose observables.
60- *
61- * @param <T> the upstream value type
62- * @param <R> the downstream value type
63- */
64- public interface Transformer <T , R > extends Function <Flowable <T >, Publisher <? extends R >> {
65-
66- }
6747
6848 /** A never observable instance as there is no need to instantiate this more than once. */
6949 static final Flowable <Object > NEVER = new Flowable <Object >() { // FIXME factor out
@@ -1525,7 +1505,7 @@ public U call() {
15251505 @ BackpressureSupport (BackpressureKind .PASS_THROUGH )
15261506 @ SchedulerSupport (SchedulerSupport .NONE )
15271507 // TODO generics
1528- public final <R > Flowable <R > compose (Transformer <T , R > composer ) {
1508+ public final <R > Flowable <R > compose (FlowableTransformer <T , R > composer ) {
15291509 return fromPublisher (to (composer ));
15301510 }
15311511
@@ -1929,7 +1909,7 @@ public final Flowable<T> doOnLifecycle(final Consumer<? super Subscription> onSu
19291909 Objects .requireNonNull (onSubscribe , "onSubscribe is null" );
19301910 Objects .requireNonNull (onRequest , "onRequest is null" );
19311911 Objects .requireNonNull (onCancel , "onCancel is null" );
1932- return lift (new Operator <T , T >() {
1912+ return lift (new FlowableOperator <T , T >() {
19331913 @ Override
19341914 public Subscriber <? super T > apply (Subscriber <? super T > s ) {
19351915 return new SubscriptionLambdaSubscriber <T >(s , onSubscribe , onRequest , onCancel );
@@ -2335,7 +2315,7 @@ public final Flowable<T> last(T defaultValue) {
23352315
23362316 @ BackpressureSupport (BackpressureKind .SPECIAL )
23372317 @ SchedulerSupport (SchedulerSupport .NONE )
2338- public final <R > Flowable <R > lift (Operator <? extends R , ? super T > lifter ) {
2318+ public final <R > Flowable <R > lift (FlowableOperator <? extends R , ? super T > lifter ) {
23392319 Objects .requireNonNull (lifter , "lifter is null" );
23402320 // using onSubscribe so the fusing has access to the underlying raw Publisher
23412321 return new FlowableLift <R , T >(this , lifter );
@@ -2918,7 +2898,7 @@ public final <R> Flowable<R> scanWith(Callable<R> seedSupplier, BiFunction<R, ?
29182898 @ BackpressureSupport (BackpressureKind .PASS_THROUGH )
29192899 @ SchedulerSupport (SchedulerSupport .NONE )
29202900 public final Flowable <T > serialize () {
2921- return lift (new Operator <T , T >() {
2901+ return lift (new FlowableOperator <T , T >() {
29222902 @ Override
29232903 public Subscriber <? super T > apply (Subscriber <? super T > s ) {
29242904 return new SerializedSubscriber <T >(s );
0 commit comments