package com.yoelglus.presentation.patterns.domain.usecases;

import rx.Observable;
import rx.Scheduler;
import rx.Subscriber;
import rx.Subscription;

public abstract class AbstractUseCase<T> {

    protected Scheduler mIoScheduler;
    protected Scheduler mMainScheduler;

    public AbstractUseCase(Scheduler ioScheduler, Scheduler mainScheduler) {
        mIoScheduler = ioScheduler;
        mMainScheduler = mainScheduler;
    }

    public Observable<T> execute() {
        return getObservable().subscribeOn(mIoScheduler).observeOn(mMainScheduler);
    }

    public abstract Observable<T> getObservable();
}

@@ -100,54 +100,8 @@
 ler;
-%0Aimport rx.Subscriber;%0Aimport rx.Subscription;
 %0A%0Apu
@@ -144,31 +144,29 @@
 T%3E %7B%0A%0A    pr
-otec
+iva
 te
-d
  Scheduler m
@@ -188,15 +188,13 @@
   pr
-otec
+iva
 te
-d
  Sch
@@ -221,23 +221,16 @@
 r;%0A%0A    
-public 
 Abstract

Remove warnings