public class ClassUtils extends Object
| Constructor and Description |
|---|
ClassUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<Field> |
getFields(Class<?> type) |
static <T> boolean |
isArray(Class<T> cls) |
static <T> boolean |
isCollection(Class<T> cls) |
static boolean |
isComposite(Class<?> cls) |
static <T> boolean |
isEnum(Class<T> type) |
static <T> boolean |
isMap(Class<T> type) |
static <T> boolean |
isObject(Class<T> type) |
static <T> boolean |
isPrimitive(Class<T> cls) |
static boolean |
isSameCompositeType(Class<?> type1,
Class<?> type2) |
static <T> boolean |
isString(Class<T> cls) |
static <T> boolean |
isWrapperClass(Class<T> cls) |
static <T> T |
newInstance(Class<T> type) |
static <T> T |
newInstance(Class<T> type,
Constructor<?> constructor,
Object... parameters) |
static void |
setProperty(Object o,
Field field,
Object fieldValue) |
public static <T> boolean isPrimitive(Class<T> cls)
public static <T> boolean isWrapperClass(Class<T> cls)
public static <T> boolean isArray(Class<T> cls)
public static <T> boolean isString(Class<T> cls)
public static <T> boolean isCollection(Class<T> cls)
public static <T> boolean isEnum(Class<T> type)
public static <T> boolean isMap(Class<T> type)
public static <T> boolean isObject(Class<T> type)
public static boolean isComposite(Class<?> cls)
public static <T> T newInstance(Class<T> type)
public static <T> T newInstance(Class<T> type, Constructor<?> constructor, Object... parameters)
Copyright © 2015. All rights reserved.