public class MapToDateMorpher extends AbstractObjectMorpher
| Modifier and Type | Field and Description |
|---|---|
private java.util.Date |
defaultValue |
| Constructor and Description |
|---|
MapToDateMorpher() |
MapToDateMorpher(java.util.Date defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getDefaultValue()
Returns the default value for this Morpher.
|
private int |
getValue(java.util.Map map,
java.lang.String key) |
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.
|
void |
setDefaultValue(java.util.Date defaultValue)
Sets the defaultValue to use if the value to be morphed is null.
|
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, setUseDefaultpublic MapToDateMorpher()
public MapToDateMorpher(java.util.Date defaultValue)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.Date getDefaultValue()
public 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 void setDefaultValue(java.util.Date defaultValue)
defaultValue - return value if the value to be morphed is nullpublic boolean supports(java.lang.Class clazz)
AbstractObjectMorphersupports in interface Morphersupports in class AbstractObjectMorpherclazz - the source Classprivate int getValue(java.util.Map map,
java.lang.String key)