public final class DateMapper extends SimpleMapper<Date>
| Modifier and Type | Field and Description |
|---|---|
static DateMapper |
instance |
type| Constructor and Description |
|---|
DateMapper() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createJSON(Date obj)
Convert object to JSON.
|
Date |
createObject(Object json)
Create object from JSON representation.
|
asArray, componentFromJSON, componentToJSON, fieldFromJSON, fieldToJSON, getFromJSON, setToJSONpublic static final DateMapper instance
public Object createJSON(Date obj)
JSONMappercreateJSON in interface JSONMapper<Date>createJSON in class SimpleMapper<Date>obj - object to be convertedpublic Date createObject(Object json)
JSONMappercreateObject in interface JSONMapper<Date>createObject in class SimpleMapper<Date>json - JSON representation.Copyright © 2014–2016 Tomas Teubner. All rights reserved.