public final class ClassUtil extends Object
Constructor and Description |
---|
ClassUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
existClass(String className) |
static Class<?> |
get(String name) |
static ConcurrentMap<?,?> |
getConcurrentMapInstance() |
static Object |
getInstance(Class<?> clazz,
Class<?>[] params,
Object[] values) |
static <T> T |
getInstance(Class<T> clazz) |
static Object |
getInstance(String name) |
static Class<?> |
getInstantiableClass(Class<?> clazz) |
static List<?> |
getListInstance() |
static Map<?,?> |
getMapInstance() |
static Set<?> |
getSetInstance() |
static Class<?> |
getWrapper(Class<?> clazz) |
public static Class<?> get(String name) throws ClassNotFoundException
ClassNotFoundException
public static Object getInstance(Class<?> clazz, Class<?>[] params, Object[] values) throws NoSuchMethodException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
public static <T> T getInstance(Class<T> clazz) throws InstantiationException, IllegalAccessException
public static Object getInstance(String name) throws InstantiationException, IllegalAccessException, ClassNotFoundException
public static List<?> getListInstance() throws ClassNotFoundException, InstantiationException, IllegalAccessException
public static ConcurrentMap<?,?> getConcurrentMapInstance() throws ClassNotFoundException, InstantiationException, IllegalAccessException
public static Map<?,?> getMapInstance() throws ClassNotFoundException, InstantiationException, IllegalAccessException
public static Set<?> getSetInstance() throws ClassNotFoundException, InstantiationException, IllegalAccessException
public static boolean existClass(String className)
Copyright © 2018 Brandao. All rights reserved.