Class Converter
java.lang.Object
jodd.typeconverter.Converter
Just a convenient
TypeConverterManager usage.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Converterget()Returns default instance.toBigDecimal(Object value) Converts value toBigDecimal.toBigDecimal(Object value, BigDecimal defaultValue) Converts value toBigDecimal.toBigInteger(Object value) Converts value toBigInteger.toBigInteger(Object value, BigInteger defaultValue) Converts value toBigInteger.Converts value toBoolean.Converts value toBoolean.boolean[]toBooleanArray(Object value) Converts value toboolean[].booleantoBooleanValue(Object value) Converts value tobooleanwith common default value.booleantoBooleanValue(Object value, boolean defaultValue) Converts value toboolean.Converts value toByte.Converts value toByte.bytetoByteValue(Object value) Converts value tobytewith common default value.bytetoByteValue(Object value, byte defaultValue) Converts value tobyte.toCharacter(Object value) Converts value toCharacter.toCharacter(Object value, Character defaultValue) Converts value toCharacter.char[]toCharacterArray(Object value) Converts value tochar[].chartoCharValue(Object value) Converts value tocharwith common default value.chartoCharValue(Object value, char defaultValue) Converts value tochar.Converts value toClass.Class[]toClassArray(Object value) Converts value toClass[].Converts value toDouble.Converts value toDouble.double[]toDoubleArray(Object value) Converts value todouble[].doubletoDoubleValue(Object value) Converts value todoublewith common default value.doubletoDoubleValue(Object value, double defaultValue) Converts value todouble.Converts value toFloat.Converts value toFloat.float[]toFloatArray(Object value) Converts value tofloat[].floattoFloatValue(Object value) Converts value tofloatwith common default value.floattoFloatValue(Object value, float defaultValue) Converts value tofloat.Converts value toInteger.Converts value toInteger.int[]toIntegerArray(Object value) Converts value toint[].inttoIntValue(Object value) Converts value tointwith common default value.inttoIntValue(Object value, int defaultValue) Converts value toint.Converts value toLong.Converts value toLong.long[]toLongArray(Object value) Converts value tolong[].longtoLongValue(Object value) Converts value tolongwith common default value.longtoLongValue(Object value, long defaultValue) Converts value tolong.Converts value toShort.Converts value toShort.short[]toShortArray(Object value) Converts value toshort[].shorttoShortValue(Object value) Converts value toshortwith common default value.shorttoShortValue(Object value, short defaultValue) Converts value toshort.Converts value toString.Converts value toString.String[]toStringArray(Object value) Converts value toString[].
-
Field Details
-
CONVERTER
-
-
Constructor Details
-
Converter
public Converter()
-
-
Method Details
-
get
Returns default instance. -
toBoolean
-
toBoolean
-
toBooleanValue
Converts value toboolean. Returns default value when conversion result isnull. -
toBooleanValue
Converts value tobooleanwith common default value. -
toInteger
-
toInteger
-
toIntValue
Converts value toint. Returns default value when conversion result isnull. -
toIntValue
Converts value tointwith common default value. -
toLong
-
toLong
-
toLongValue
Converts value tolong. Returns default value when conversion result isnull. -
toLongValue
Converts value tolongwith common default value. -
toFloat
-
toFloat
-
toFloatValue
Converts value tofloat. Returns default value when conversion result isnull. -
toFloatValue
Converts value tofloatwith common default value. -
toDouble
-
toDouble
-
toDoubleValue
Converts value todouble. Returns default value when conversion result isnull. -
toDoubleValue
Converts value todoublewith common default value. -
toShort
-
toShort
-
toShortValue
Converts value toshort. Returns default value when conversion result isnull. -
toShortValue
Converts value toshortwith common default value. -
toCharacter
-
toCharacter
-
toCharValue
Converts value tochar. Returns default value when conversion result isnull. -
toCharValue
Converts value tocharwith common default value. -
toByte
-
toByte
-
toByteValue
Converts value tobyte. Returns default value when conversion result isnull. -
toByteValue
Converts value tobytewith common default value. -
toBooleanArray
Converts value toboolean[]. -
toIntegerArray
Converts value toint[]. -
toLongArray
Converts value tolong[]. -
toFloatArray
Converts value tofloat[]. -
toDoubleArray
Converts value todouble[]. -
toShortArray
Converts value toshort[]. -
toCharacterArray
Converts value tochar[]. -
toString
-
toString
-
toStringArray
-
toClass
-
toClassArray
-
toBigInteger
Converts value toBigInteger. -
toBigInteger
Converts value toBigInteger. Returns default value when conversion result isnull -
toBigDecimal
Converts value toBigDecimal. -
toBigDecimal
Converts value toBigDecimal. Returns default value when conversion result isnull
-