public class MapToDateMorpher extends AbstractObjectMorpher
| Constructor and Description |
|---|
MapToDateMorpher() |
MapToDateMorpher(Date defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Date |
getDefaultValue()
Returns the default value for this Morpher.
|
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.
|
void |
setDefaultValue(Date defaultValue)
Sets the defaultValue to use if the value to be morphed is null.
|
boolean |
supports(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(Date defaultValue)
public Date getDefaultValue()
public Object morph(Object value)
ObjectMorphervalue - The input value to be morphedpublic Class morphsTo()
Morpherpublic void setDefaultValue(Date defaultValue)
defaultValue - return value if the value to be morphed is nullpublic boolean supports(Class clazz)
AbstractObjectMorphersupports in interface Morphersupports in class AbstractObjectMorpherclazz - the source ClassCopyright © 2006–2024. All rights reserved.