类 MorphUtils
java.lang.Object
com.sh.json.ezmorph.MorphUtils
Covenient class for registering standard morphers to a ConvertRegistry.<br
-
字段概要
字段修饰符和类型字段说明static final BigDecimalConstant value for BigDecimal(1)static final BigDecimalConstant value for BigDecimal(0) -
方法概要
修饰符和类型方法说明static voidregisterStandardMorphers(MorpherRegistry morpherRegistry) Clears and registers all standard morpehrs.static voidregisterStandardObjectArrayMorphers(MorpherRegistry morpherRegistry) Registers morphers for arrays of wrappers and String with standard default values.
Boolean - Boolean.FALSE Character - new Character('\0') Byte - new Byte( (byte)0 ) Short - new Short( (short)0 ) Integer - new Integer( 0 ) Long - new Long( 0 ) Float - new Float( 0 ) Double - new Double( 0 ) String - null BigInteger - BigInteger.ZERO BigDecimal - MorphUtils.BIGDECIMAL_ZEROstatic voidregisterStandardObjectMorphers(MorpherRegistry morpherRegistry) Registers morphers for wrappers and String with standard default values.
Boolean - Boolean.FALSE Character - new Character('\0') Byte - new Byte( (byte)0 ) Short - new Short( (short)0 ) Integer - new Integer( 0 ) Long - new Long( 0 ) Float - new Float( 0 ) Double - new Double( 0 ) String - null BigInteger - BigInteger.ZERO BigDecimal - MorphUtils.BIGDECIMAL_ZEROstatic voidregisterStandardPrimitiveArrayMorphers(MorpherRegistry morpherRegistry) Registers morphers for arrays of primitives with standard default values.
boolean - false char - '\0' byte - 0 short - 0 int - 0 long - 0 float - 0 double - 0static voidregisterStandardPrimitiveMorphers(MorpherRegistry morpherRegistry) Registers morphers for primitives with standard default values.
boolean - false char - '\0' byte - 0 short - 0 int - 0 long - 0 float - 0 double - 0
-
字段详细资料
-
BIGDECIMAL_ONE
Constant value for BigDecimal(1) -
BIGDECIMAL_ZERO
Constant value for BigDecimal(0)
-
-
方法详细资料
-
registerStandardMorphers
Clears and registers all standard morpehrs.- 参数:
morpherRegistry-
-
registerStandardObjectArrayMorphers
Registers morphers for arrays of wrappers and String with standard default values.
- Boolean - Boolean.FALSE
- Character - new Character('\0')
- Byte - new Byte( (byte)0 )
- Short - new Short( (short)0 )
- Integer - new Integer( 0 )
- Long - new Long( 0 )
- Float - new Float( 0 )
- Double - new Double( 0 )
- String - null
- BigInteger - BigInteger.ZERO
- BigDecimal - MorphUtils.BIGDECIMAL_ZERO
- 参数:
morpherRegistry-
-
registerStandardObjectMorphers
Registers morphers for wrappers and String with standard default values.
- Boolean - Boolean.FALSE
- Character - new Character('\0')
- Byte - new Byte( (byte)0 )
- Short - new Short( (short)0 )
- Integer - new Integer( 0 )
- Long - new Long( 0 )
- Float - new Float( 0 )
- Double - new Double( 0 )
- String - null
- BigInteger - BigInteger.ZERO
- BigDecimal - MorphUtils.BIGDECIMAL_ZERO
- 参数:
morpherRegistry-
-
registerStandardPrimitiveArrayMorphers
Registers morphers for arrays of primitives with standard default values.
- boolean - false
- char - '\0'
- byte - 0
- short - 0
- int - 0
- long - 0
- float - 0
- double - 0
- 参数:
morpherRegistry-
-
registerStandardPrimitiveMorphers
Registers morphers for primitives with standard default values.
- boolean - false
- char - '\0'
- byte - 0
- short - 0
- int - 0
- long - 0
- float - 0
- double - 0
- 参数:
morpherRegistry-
-