Package net.sf.ezmorph
Class MorphUtils
java.lang.Object
net.sf.ezmorph.MorphUtils
Covenient class for registering standard morphers to a ConvertRegistry.
- Author:
- Andres Almiray aalmiray@users.sourceforge.net
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BigDecimalConstant value for BigDecimal(1)static final BigDecimalConstant value for BigDecimal(0) -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 - '\0' Byte - (byte) 0 Short - (short) 0 Integer - 0 Long - 0L Float - 0f Double - 0d 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 - '\0' Byte - (byte) 0 Short - (short) 0 Integer - 0 Long - 0L Float - 0f Double - 0d 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
-
Field Details
-
BIGDECIMAL_ONE
Constant value for BigDecimal(1) -
BIGDECIMAL_ZERO
Constant value for BigDecimal(0)
-
-
Method Details
-
registerStandardMorphers
Clears and registers all standard morpehrs.- Parameters:
morpherRegistry-
-
registerStandardObjectArrayMorphers
Registers morphers for arrays of wrappers and String with standard default values.
- Boolean - Boolean.FALSE
- Character - '\0'
- Byte - (byte) 0
- Short - (short) 0
- Integer - 0
- Long - 0L
- Float - 0f
- Double - 0d
- String - null
- BigInteger - BigInteger.ZERO
- BigDecimal - MorphUtils.BIGDECIMAL_ZERO
- Parameters:
morpherRegistry-
-
registerStandardObjectMorphers
Registers morphers for wrappers and String with standard default values.
- Boolean - Boolean.FALSE
- Character - '\0'
- Byte - (byte) 0
- Short - (short) 0
- Integer - 0
- Long - 0L
- Float - 0f
- Double - 0d
- String - null
- BigInteger - BigInteger.ZERO
- BigDecimal - MorphUtils.BIGDECIMAL_ZERO
- Parameters:
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
- Parameters:
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
- Parameters:
morpherRegistry-
-