Class AbstractPrimitiveMorpher
java.lang.Object
net.sf.ezmorph.primitive.AbstractPrimitiveMorpher
- All Implemented Interfaces:
Morpher
- Direct Known Subclasses:
AbstractDecimalMorpher, AbstractIntegerMorpher, BooleanMorpher, CharMorpher
-
Field Summary
Fields -
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.
-
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
-