类 ClassUtils


  • public class ClassUtils
    extends Object
    ClassUtils. (Tool, Static, ThreadSafe)
    • 方法详细资料

      • newInstance

        public static Object newInstance​(String name)
      • forName

        public static Class<?> forName​(String className)
      • getBoxedClass

        public static Class<?> getBoxedClass​(Class<?> type)
      • boxed

        public static Boolean boxed​(boolean v)
      • boxed

        public static Character boxed​(char v)
      • boxed

        public static Byte boxed​(byte v)
      • boxed

        public static Short boxed​(short v)
      • boxed

        public static Integer boxed​(int v)
      • boxed

        public static Long boxed​(long v)
      • boxed

        public static Float boxed​(float v)
      • boxed

        public static Double boxed​(double v)
      • unboxed

        public static boolean unboxed​(Boolean v)
      • unboxed

        public static char unboxed​(Character v)
      • unboxed

        public static byte unboxed​(Byte v)
      • unboxed

        public static short unboxed​(Short v)
      • unboxed

        public static int unboxed​(Integer v)
      • unboxed

        public static long unboxed​(Long v)
      • unboxed

        public static float unboxed​(Float v)
      • unboxed

        public static double unboxed​(Double v)
      • isNotEmpty

        public static boolean isNotEmpty​(Object object)
      • getSize

        public static int getSize​(Object object)
      • toURI

        public static URI toURI​(String name)
      • getGenericClass

        public static Class<?> getGenericClass​(Class<?> cls)
      • getGenericClass

        public static Class<?> getGenericClass​(Class<?> cls,
                                               int i)
      • isBeforeJava5

        public static boolean isBeforeJava5​(String javaVersion)
      • isBeforeJava6

        public static boolean isBeforeJava6​(String javaVersion)
      • checkBytecode

        public static void checkBytecode​(String name,
                                         byte[] bytecode)
      • getSizeMethod

        public static String getSizeMethod​(Class<?> cls)
      • getMethodName

        public static String getMethodName​(Method method,
                                           Class<?>[] parameterClasses,
                                           String rightCode)
      • getInitCode

        public static String getInitCode​(Class<?> type)
      • toMap

        public static <K,​V> Map<K,​V> toMap​(Map.Entry<K,​V>[] entries)