Morpher
, ObjectMorpher
public final class ObjectArrayMorpher extends AbstractArrayMorpher
Constructor | 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 | Description |
---|---|---|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
Object |
morph(Object array) |
Morphs the input object into an output object of the supported type.
|
Class |
morphsTo() |
Returns the target Class for conversion.
|
boolean |
supports(Class clazz) |
Returns true if the Morpher supports conversion from this Class.
|
createDimensions, getDimensions, isUseDefault, setUseDefault
public ObjectArrayMorpher(Morpher morpher)
morpher
- the Morpher that will handle the array's inner type.public Object morph(Object array)
ObjectMorpher
array
- The input value to be morphedpublic Class morphsTo()
Morpher
public boolean supports(Class clazz)
Morpher
supports
in interface Morpher
supports
in class AbstractArrayMorpher
clazz
- the source ClassCopyright © 2006–2019. All rights reserved.