cyclops.monads.RxWitness Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cyclops-rx Show documentation
Show all versions of cyclops-rx Show documentation
Converters and Comprehenders for RxJava
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();
}
}
}