public final class ObjectListMorpher extends AbstractObjectMorpher
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
defaultValue |
private Morpher |
morpher |
private java.lang.reflect.Method |
morphMethod |
| 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,
java.lang.Object defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.Object |
morph(java.lang.Object value)
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.
Supports any type that is not an Array. |
isUseDefault, setUseDefaultprivate java.lang.Object defaultValue
private Morpher morpher
private java.lang.reflect.Method morphMethod
public ObjectListMorpher(Morpher morpher)
morpher - the Morpher that will handle the array's inner type.public ObjectListMorpher(Morpher morpher, java.lang.Object defaultValue)
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 value)
ObjectMorphervalue - The input value to be morphedpublic java.lang.Class morphsTo()
Morpherpublic boolean supports(java.lang.Class clazz)
AbstractObjectMorphersupports in interface Morphersupports in class AbstractObjectMorpherclazz - the source Classprivate void setMorpher(Morpher morpher)