com.litongjava.tio.http.server.util.ClassUtils Maven / Gradle / Ivy
package com.litongjava.tio.http.server.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.litongjava.tio.http.common.UploadFile;
import com.litongjava.tio.utils.hutool.ClassUtil;
/**
* @author tanyaowu
* 2017年7月26日 下午6:46:11
*/
public class ClassUtils {
@SuppressWarnings("unused")
private static Logger log = LoggerFactory.getLogger(ClassUtils.class);
public static boolean isSimpleTypeOrArray(Class> clazz) {
return ClassUtil.isSimpleTypeOrArray(clazz) || clazz.isAssignableFrom(UploadFile.class)
|| clazz.isAssignableFrom(UploadFile[].class);
}
/**
*
* @author tanyaowu
*/
public ClassUtils() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy