io.vertx.rxjava3.core.ObservableHelper Maven / Gradle / Ivy
package io.vertx.rxjava3.core;
import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.core.type.TypeReference;
import io.reactivex.rxjava3.core.ObservableTransformer;
import io.vertx.rxjava3.core.buffer.Buffer;
import io.vertx.rxjava3.impl.ObservableUnmarshaller;
/**
* @author Julien Viet
*/
public class ObservableHelper {
public static ObservableTransformer unmarshaller(Class mappedType) {
return new ObservableUnmarshaller<>(Buffer::getDelegate, mappedType);
}
public static ObservableTransformer unmarshaller(TypeReference mappedTypeRef) {
return new ObservableUnmarshaller<>(Buffer::getDelegate, mappedTypeRef);
}
public static ObservableTransformer unmarshaller(Class mappedType, ObjectCodec mapper) {
return new ObservableUnmarshaller<>(Buffer::getDelegate, mappedType, mapper);
}
public static ObservableTransformer unmarshaller(TypeReference mappedTypeRef, ObjectCodec mapper) {
return new ObservableUnmarshaller<>(Buffer::getDelegate, mappedTypeRef, mapper);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy