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
public abstract class AbstractPrimitiveMorpher extends java.lang.Object implements Morpher
Base class for primitive value conversion.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanuseDefault
-
Constructor Summary
Constructors Constructor Description AbstractPrimitiveMorpher()AbstractPrimitiveMorpher(boolean useDefault)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisUseDefault()Returns if this morpher will use a default value if the value to be morphed is nullbooleansupports(java.lang.Class clazz)Returns true if the Morpher supports conversion from this Class.
Supports any type that is not an Array.
-
-
-
Method Detail
-
isUseDefault
public boolean isUseDefault()
Returns if this morpher will use a default value if the value to be morphed is null
-
supports
public boolean supports(java.lang.Class clazz)
Returns true if the Morpher supports conversion from this Class.
Supports any type that is not an Array.
-
-