public final class ObjectArrayMorpher extends AbstractArrayMorpher
| Modifier and Type | Field and Description |
|---|---|
private Morpher |
morpher |
private java.lang.reflect.Method |
morphMethod |
private java.lang.Class |
target |
private java.lang.Class |
targetArrayClass |
| Constructor and Description |
|---|
ObjectArrayMorpher(Morpher morpher)
Creates a new ArrayMorpher which will use another Morpher for its inner
type.
The inner morpher can not morph to an array. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.Object |
morph(java.lang.Object array)
Morphs the input object into an output object of the supported type.
|
java.lang.Class |
morphsTo()
Returns the target Class for conversion.
|
private void |
setMorpher(Morpher morpher) |
boolean |
supports(java.lang.Class clazz)
Returns true if the Morpher supports conversion from this Class.
|
createDimensions, getDimensions, isUseDefault, setUseDefaultprivate Morpher morpher
private java.lang.reflect.Method morphMethod
private java.lang.Class target
private java.lang.Class targetArrayClass
public ObjectArrayMorpher(Morpher morpher)
morpher - the Morpher that will handle the array's inner type.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object morph(java.lang.Object array)
ObjectMorpherarray - The input value to be morphedpublic java.lang.Class morphsTo()
Morpherpublic boolean supports(java.lang.Class clazz)
Morphersupports in interface Morphersupports in class AbstractArrayMorpherclazz - the source Classprivate void setMorpher(Morpher morpher)