Morpher, ObjectMorpherpublic final class ObjectListMorpher extends AbstractObjectMorpher
| Constructor | Description |
|---|---|
ObjectListMorpher(Morpher morpher) |
Creates a new ArrayMorpher which will use another Morpher for its inner
type.
The inner morpher can not morph to an array. |
ObjectListMorpher(Morpher morpher,
Object defaultValue) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
Object |
morph(Object value) |
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.
Supports any type that is not an Array. |
isUseDefault, setUseDefaultpublic ObjectListMorpher(Morpher morpher)
morpher - the Morpher that will handle the array's inner type.public Object morph(Object value)
ObjectMorphervalue - The input value to be morphedpublic Class morphsTo()
Morpherpublic boolean supports(Class clazz)
AbstractObjectMorphersupports in interface Morphersupports in class AbstractObjectMorpherclazz - the source ClassCopyright © 2006–2019. All rights reserved.