Package net.sf.ezmorph.primitive
Class AbstractPrimitiveMorpher
java.lang.Object
net.sf.ezmorph.primitive.AbstractPrimitiveMorpher
- All Implemented Interfaces:
Morpher
- Direct Known Subclasses:
AbstractDecimalMorpher
,AbstractIntegerMorpher
,BooleanMorpher
,CharMorpher
Base class for primitive value conversion.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if this morpher will use a default value if the value to be morphed is nullboolean
Returns true if the Morpher supports conversion from this Class.
Supports any type that is not an Array.
-
Field Details
-
useDefault
private boolean useDefault
-
-
Constructor Details
-
AbstractPrimitiveMorpher
public AbstractPrimitiveMorpher() -
AbstractPrimitiveMorpher
public AbstractPrimitiveMorpher(boolean useDefault) - Parameters:
useDefault
- if morph() should return a default value if the value to be morphed is null
-
-
Method Details
-
isUseDefault
public boolean isUseDefault()Returns if this morpher will use a default value if the value to be morphed is null -
supports
Returns true if the Morpher supports conversion from this Class.
Supports any type that is not an Array.
-