类 AbstractArrayMorpher
java.lang.Object
com.sh.json.ezmorph.array.AbstractArrayMorpher
- 所有已实现的接口:
Morpher,ObjectMorpher
- 直接已知子类:
BooleanArrayMorpher,BooleanObjectArrayMorpher,ByteArrayMorpher,CharacterObjectArrayMorpher,CharArrayMorpher,DoubleArrayMorpher,FloatArrayMorpher,IntArrayMorpher,LongArrayMorpher,ObjectArrayMorpher,ShortArrayMorpher
Base class for array Morphers.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected int[]createDimensions(int length, int initial) Creates an array representing the dimensions for comversion.protected intgetDimensions(Class<?> arrayClass) Returns the number of dimensions in an array class.booleanReturns if this morpher will use a default value.voidsetUseDefault(boolean useDefault) Sets if this morpher will use a default value.booleanReturns true if the Morpher supports conversion from this Class.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.sh.json.ezmorph.ObjectMorpher
morph
-
构造器详细资料
-
AbstractArrayMorpher
public AbstractArrayMorpher() -
AbstractArrayMorpher
public AbstractArrayMorpher(boolean useDefault) - 参数:
useDefault- if morph() should return a default value if the value to be morphed is null
-
-
方法详细资料
-
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
从接口复制的说明:MorpherReturns 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
Returns the number of dimensions in an array class.
-