public class TypeUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
compatibleWithFieldName
根据field name的大小写输出输入数据
|
static boolean |
compatibleWithJavaBean |
| Constructor and Description |
|---|
TypeUtils() |
public static boolean compatibleWithJavaBean
public static boolean compatibleWithFieldName
public static BigDecimal castToBigDecimal(Object value)
public static BigInteger castToBigInteger(Object value)
public static long longExtractValue(Number number)
public static boolean isNumber(String str)
public static byte[] castToBytes(Object value)
public static <T> T cast(Object obj, Class<T> clazz, ParserConfig config)
public static <T> T castToEnum(Object obj, Class<T> clazz, ParserConfig mapping)
public static <T> T cast(Object obj, Type type, ParserConfig mapping)
public static <T> T cast(Object obj, ParameterizedType type, ParserConfig mapping)
public static <T> T castToJavaBean(Map<String,Object> map, Class<T> clazz, ParserConfig config)
public static void clearClassMapping()
public static boolean isPath(Class<?> clazz)
public static Class<?> loadClass(String className, ClassLoader classLoader)
public static Class<?> loadClass(String className, ClassLoader classLoader, boolean cache)
public static SerializeBeanInfo buildBeanInfo(Class<?> beanType, Map<String,String> aliasMap, PropertyNamingStrategy propertyNamingStrategy)
public static SerializeBeanInfo buildBeanInfo(Class<?> beanType, Map<String,String> aliasMap, PropertyNamingStrategy propertyNamingStrategy, boolean fieldBased)
public static List<FieldInfo> computeGettersWithFieldBase(Class<?> clazz, Map<String,String> aliasMap, boolean sorted, PropertyNamingStrategy propertyNamingStrategy)
public static List<FieldInfo> computeGetters(Class<?> clazz, Map<String,String> aliasMap)
public static List<FieldInfo> computeGetters(Class<?> clazz, Map<String,String> aliasMap, boolean sorted)
public static List<FieldInfo> computeGetters(Class<?> clazz, JSONType jsonType, Map<String,String> aliasMap, Map<String,Field> fieldCacheMap, boolean sorted, PropertyNamingStrategy propertyNamingStrategy)
public static JSONField getSuperMethodAnnotation(Class<?> clazz, Method method)
public static boolean isGenericParamType(Type type)
public static int getSerializeFeatures(Class<?> clazz)
public static int getParserFeatures(Class<?> clazz)
public static Type checkPrimitiveArray(GenericArrayType genericArrayType)
public static Collection createCollection(Type type)
public static boolean isProxy(Class<?> clazz)
public static boolean isTransient(Method method)
public static boolean isAnnotationPresentOneToMany(Method method)
public static boolean isAnnotationPresentManyToMany(Method method)
public static boolean isHibernateInitialized(Object object)
public static long fnv1a_64_lower(String key)
public static long fnv1a_64(String key)
public static boolean isKotlin(Class clazz)
public static Constructor getKoltinConstructor(Constructor[] constructors)
public static Constructor getKoltinConstructor(Constructor[] constructors, String[] paramNames)
public static <A extends Annotation> A getAnnotation(Class<?> clazz, Class<A> annotationClass)
Copyright © 2012–2018 Alibaba Group. All rights reserved.