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

cyclops.monads.RxWitness Maven / Gradle / Ivy

There is a newer version: 9.0.0-MI7
Show newest version
package cyclops.monads;



import com.aol.cyclops.rx.adapter.ObservableAdapter;
import com.aol.cyclops.rx.adapter.ObservableReactiveSeq;
import com.aol.cyclops2.types.extensability.FunctionalAdapter;
import rx.Observable;


public interface RxWitness {

    public static  Observable observable(AnyM anyM){
        ObservableReactiveSeq obs = anyM.unwrap();
        return obs.getObservable();
    }

    static interface ObservableWitness>  extends WitnessType {

    }
    public static enum obsvervable implements ObservableWitness {
        INSTANCE;

        @Override
        public FunctionalAdapter adapter() {
            return new ObservableAdapter();
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy