com.pushtorefresh.storio.internal.RxChangesBus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common Show documentation
Show all versions of common Show documentation
Modern API for SQLiteDatabase and ContentResolver
package com.pushtorefresh.storio.internal;
import android.support.annotation.NonNull;
import rx.Observable;
import rx.subjects.PublishSubject;
import rx.subjects.Subject;
/**
* Hides RxJava from ClassLoader...
*/
class RxChangesBus {
@NonNull
private final Subject rxBus = PublishSubject.create().toSerialized();
public void onNext(@NonNull T next) {
rxBus.onNext(next);
}
@NonNull
public Observable asObservable() {
return rxBus;
}
}