org.sfm.reflect
public class TypeHelper extends Object
| Constructor and Description |
|---|
TypeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areCompatible(Class<?> target,
Class<?> source) |
static boolean |
areEquals(Type target,
Class<?> clazz) |
static Type |
getComponentType(Type outType) |
static Type[] |
getParamTypesForInterface(Class<?> target,
Class<?> inter) |
static <T> Map<TypeVariable<?>,Type> |
getTypesMap(Type targetType,
Class<T> targetClass) |
static boolean |
isArray(Type outType) |
static boolean |
isAssignable(Class<?> class1,
Type from) |
static boolean |
isClass(Type outType,
Class<?> class1) |
static boolean |
isEnum(Type target) |
static boolean |
isJavaLang(Type target) |
static boolean |
isNumber(Type target) |
static boolean |
isPrimitive(Type type) |
static Class<?> |
toBoxedClass(Class<?> target) |
static <T> Class<T> |
toClass(Type target) |
static Class<?> |
wrap(Class<?> target) |
static Class<?> |
wrap(Type type) |
public static <T> Map<TypeVariable<?>,Type> getTypesMap(Type targetType, Class<T> targetClass)
public static boolean isPrimitive(Type type)
public static boolean isNumber(Type target)
public static boolean isArray(Type outType)
public static Type[] getParamTypesForInterface(Class<?> target, Class<?> inter)
public static boolean isJavaLang(Type target)
public static boolean isEnum(Type target)
Copyright © 2015. All rights reserved.