io.vertx.lang.reactivex.Helper Maven / Gradle / Ivy
The newest version!
package io.vertx.lang.reactivex;
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