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_SHORT
base
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, createArray
createObject, getType, getValue, setValue
public GenericMapper(JsonReader base, Class<T> type)
public T convert(Object current)
JsonReaderI
convert
in class ArraysMapper<T>
public JsonReaderI<?> startArray(String key)
JsonReaderI
startArray
in class JsonReaderI<T>
key
- the destination key name, or null.public JsonReaderI<?> startObject(String key)
JsonReaderI
startObject
in class JsonReaderI<T>
Copyright © 2016 Chemouni Uriel. All rights reserved.