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