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

io.vertx.rxjava3.core.FlowableHelper Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR2
Show newest version
package io.vertx.rxjava3.core;

import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.core.type.TypeReference;
import io.reactivex.rxjava3.core.FlowableTransformer;
import io.vertx.rxjava3.core.buffer.Buffer;
import io.vertx.rxjava3.impl.FlowableUnmarshaller;

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

  public static  FlowableTransformer unmarshaller(Class mappedType) {
    return new FlowableUnmarshaller<>(Buffer::getDelegate, mappedType);
  }

  public static  FlowableTransformer unmarshaller(TypeReference mappedTypeRef) {
    return new FlowableUnmarshaller<>(Buffer::getDelegate, mappedTypeRef);
  }

  public static  FlowableTransformer unmarshaller(Class mappedType, ObjectCodec mapper) {
    return new FlowableUnmarshaller<>(Buffer::getDelegate, mappedType, mapper);
  }

  public static  FlowableTransformer unmarshaller(TypeReference mappedTypeRef, ObjectCodec mapper) {
    return new FlowableUnmarshaller<>(Buffer::getDelegate, mappedTypeRef, mapper);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy