public class SwitchingMorpher extends java.lang.Object implements ObjectMorpher
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
classMap |
private MorpherRegistry |
morpherRegistry |
| Constructor and Description |
|---|
SwitchingMorpher(java.util.Map classMap,
MorpherRegistry morpherRegistry) |
| 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.
|
boolean |
supports(java.lang.Class clazz)
Returns true if the Morpher supports conversion from this Class.
|
private java.util.Map classMap
private MorpherRegistry morpherRegistry
public SwitchingMorpher(java.util.Map classMap,
MorpherRegistry morpherRegistry)
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)
ObjectMorphermorph in interface ObjectMorphervalue - The input value to be morphedpublic java.lang.Class morphsTo()
Morpherpublic boolean supports(java.lang.Class clazz)
Morpher