Package com.alibaba.fastjson2.util
Class TypeUtils
java.lang.Object
com.alibaba.fastjson2.util.TypeUtils
-
Field Summary
Fields -
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 booleanstatic Classstatic BigDecimaltoBigDecimal(Object value) static BigIntegertoBigInteger(Object value) static Booleanstatic booleantoBooleanValue(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)
-
Field Details
-
CLASS_SINGLE_SET
-
-
Constructor Details
-
TypeUtils
public TypeUtils()
-
-
Method Details
-
getMapping
-
toDate
-
toInstant
-
cast
-
getTypeName
-
getMapping
-
toBigDecimal
-
toBigInteger
-
toLong
-
toLongValue
-
toInteger
-
toByte
-
toByteValue
-
toShort
-
toShortValue
-
toIntValue
-
toBooleanValue
-
toBoolean
-
toFloatValue
-
toFloat
-
toDoubleValue
-
toDouble
-
compare
-
getDefaultValue
-
loadClass
-
getClass
-
isProxy
-