Package com.alibaba.fastjson2.util
Class TypeUtils
java.lang.Object
com.alibaba.fastjson2.util.TypeUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tstatic intstatic Class<?>static ObjectgetDefaultValue(Type paramType) static Class<?>getMapping(Type type) static ClassgetMapping(String typeName) static StringgetTypeName(Class type) static Classstatic BigDecimaltoBigDecimal(Object value) static BigIntegertoBigInteger(Object value) static Bytestatic bytetoByteValue(Object value) static Datestatic Doublestatic doubletoDoubleValue(Object value) static Floatstatic floattoFloatValue(Object value) static Instantstatic Integerstatic inttoIntValue(Object value) static Longstatic longtoLongValue(Object value) static Shortstatic shorttoShortValue(Object value)
-
Constructor Details
-
TypeUtils
public TypeUtils()
-
-
Method Details
-
getMapping
-
toDate
-
toInstant
-
cast
-
getTypeName
-
getMapping
-
toBigDecimal
-
toBigInteger
-
toLong
-
toLongValue
-
toInteger
-
toByte
-
toByteValue
-
toShort
-
toShortValue
-
toIntValue
-
toFloatValue
-
toFloat
-
toDoubleValue
-
toDouble
-
compare
-
getDefaultValue
-
loadClass
-
getClass
-