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

io.vertx.reactivex.core.ObservableHelper Maven / Gradle / Ivy

package io.vertx.reactivex.core;

import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.core.type.TypeReference;
import io.reactivex.ObservableTransformer;
import io.vertx.core.buffer.Buffer;
import io.vertx.reactivex.impl.ObservableUnmarshaller;

import java.util.function.Function;

/**
 * @author Julien Viet
 */
public class ObservableHelper {

  public static  ObservableTransformer unmarshaller(Class mappedType) {
    return new ObservableUnmarshaller<>(Function.identity(), mappedType);
  }

  public static  ObservableTransformer unmarshaller(TypeReference mappedTypeRef) {
    return new ObservableUnmarshaller<>(Function.identity(), mappedTypeRef);
  }

  public static  ObservableTransformer unmarshaller(Class mappedType, ObjectCodec mapper) {
    return new ObservableUnmarshaller<>(Function.identity(), mappedType, mapper);
  }

  public static  ObservableTransformer unmarshaller(TypeReference mappedTypeRef, ObjectCodec mapper) {
    return new ObservableUnmarshaller<>(Function.identity(), mappedTypeRef, mapper);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy