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

io.vertx.lang.rxjava.Helper Maven / Gradle / Ivy

The newest version!
package io.vertx.lang.rxjava;

import io.vertx.lang.rx.RxGen;

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

  /**
   * Unwrap the type used in RxJava.
   *
   * @param type the type to unwrap
   * @return the unwrapped type
   */
  public static Class unwrap(Class type) {
    if (type != null) {
      RxGen rxgen = type.getAnnotation(RxGen.class);
      if (rxgen != null) {
        return rxgen.value();
      }
    }
    return type;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy