public final class ObjectListMorpher extends AbstractObjectMorpher
Constructor and 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 and 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, setUseDefault
public ObjectListMorpher(Morpher morpher)
morpher
- the Morpher that will handle the array's inner type.public Object morph(Object value)
ObjectMorpher
value
- The input value to be morphedpublic Class morphsTo()
Morpher
public boolean supports(Class clazz)
AbstractObjectMorpher
supports
in interface Morpher
supports
in class AbstractObjectMorpher
clazz
- the source ClassCopyright © 2006–2021. All rights reserved.