public static class ArraysMapper.GenericMapper<T> extends ArraysMapper<T>
ArraysMapper.GenericMapper<T>MAPPER_BOOL, MAPPER_BYTE, MAPPER_CHAR, MAPPER_DOUBLE, MAPPER_FLOAT, MAPPER_INT, MAPPER_LONG, MAPPER_PRIM_BOOL, MAPPER_PRIM_BYTE, MAPPER_PRIM_CHAR, MAPPER_PRIM_DOUBLE, MAPPER_PRIM_FLOAT, MAPPER_PRIM_INT, MAPPER_PRIM_LONG, MAPPER_PRIM_SHORT, MAPPER_SHORTbase| Constructor and Description |
|---|
GenericMapper(JsonReader base,
Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
T |
convert(Object current)
Allow a mapper to converte a temprary structure to the final data format.
|
JsonReaderI<?> |
startArray(String key)
called when json-smart parser start an array.
|
JsonReaderI<?> |
startObject(String key)
called when json-smart parser meet an object key
|
addValue, createArraycreateObject, getType, getValue, setValuepublic GenericMapper(JsonReader base, Class<T> type)
public T convert(Object current)
JsonReaderIconvert in class ArraysMapper<T>public JsonReaderI<?> startArray(String key)
JsonReaderIstartArray in class JsonReaderI<T>key - the destination key name, or null.public JsonReaderI<?> startObject(String key)
JsonReaderIstartObject in class JsonReaderI<T>Copyright © 2015 Chemouni Uriel. All rights reserved.