All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.relayr.java.helper.observer.SuccessObserver Maven / Gradle / Ivy

package io.relayr.java.helper.observer;

import rx.Observer;

/**
 * This observable is not using onCompleted or onError
 * @param 
 */
public abstract class SuccessObserver implements Observer {

    @Override public void onCompleted() {}

    @Override public void onError(Throwable e) {
        System.err.println(e.getMessage());
    }

    @Override public void onNext(T o) {
        success(o);
    }

    public abstract void success(T o);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy