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

cn.hutool.core.bean.NullWrapperBean Maven / Gradle / Ivy

There is a newer version: 5.8.33
Show newest version
package cn.hutool.core.bean;

/**
 * 为了解决反射过程中,需要传递null参数,但是会丢失参数类型而设立的包装类
 *
 * @param  Null值对应的类型
 * @author Lillls
 * @since 5.5.0
 */
public class NullWrapperBean {

	private final Class clazz;

	/**
	 * @param clazz null的类型
	 */
	public NullWrapperBean(Class clazz) {
		this.clazz = clazz;
	}

	/**
	 * 获取null值对应的类型
	 *
	 * @return 类型
	 */
	public Class getWrappedClass() {
		return clazz;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy