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

com.litongjava.tio.http.server.util.ClassUtils Maven / Gradle / Ivy

There is a newer version: 3.7.3.v20241201-RELEASE
Show newest version
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