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.
- Author:
- Andres Almiray aalmiray@users.sourceforge.net
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if this morpher will use a default value if the value to be morphed is nullbooleanReturns true if the Morpher supports conversion from this Class.
Supports any type that is not an Array.
-
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.
-