Package net.sf.ezmorph.array
Class AbstractArrayMorpher
- java.lang.Object
-
- net.sf.ezmorph.array.AbstractArrayMorpher
-
- All Implemented Interfaces:
Morpher
,ObjectMorpher
- Direct Known Subclasses:
BooleanArrayMorpher
,BooleanObjectArrayMorpher
,ByteArrayMorpher
,CharacterObjectArrayMorpher
,CharArrayMorpher
,DoubleArrayMorpher
,FloatArrayMorpher
,IntArrayMorpher
,LongArrayMorpher
,ObjectArrayMorpher
,ShortArrayMorpher
public abstract class AbstractArrayMorpher extends Object implements ObjectMorpher
Base class for array Morphers.- Author:
- Andres Almiray
-
-
Constructor Summary
Constructors Constructor Description AbstractArrayMorpher()
AbstractArrayMorpher(boolean useDefault)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int[]
createDimensions(int length, int initial)
Creates an array representing the dimensions for comversion.protected int
getDimensions(Class arrayClass)
Returns the number of dimensions in an array class.boolean
isUseDefault()
Returns if this morpher will use a default value.void
setUseDefault(boolean useDefault)
Sets if this morpher will use a default value.boolean
supports(Class clazz)
Returns true if the Morpher supports conversion from this Class.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.ezmorph.ObjectMorpher
morph
-
-
-
-
Method Detail
-
isUseDefault
public boolean isUseDefault()
Returns if this morpher will use a default value.
-
setUseDefault
public void setUseDefault(boolean useDefault)
Sets if this morpher will use a default value.
-
supports
public boolean supports(Class clazz)
Description copied from interface:Morpher
Returns true if the Morpher supports conversion from this Class.
-
createDimensions
protected int[] createDimensions(int length, int initial)
Creates an array representing the dimensions for comversion.
-
getDimensions
protected int getDimensions(Class arrayClass)
Returns the number of dimensions in an array class.
-
-