Package net.minidev.json.writer
Class ArraysMapper.GenericMapper<T>
- java.lang.Object
-
- net.minidev.json.writer.JsonReaderI<T>
-
- net.minidev.json.writer.ArraysMapper<T>
-
- net.minidev.json.writer.ArraysMapper.GenericMapper<T>
-
- Enclosing class:
- ArraysMapper<T>
public static class ArraysMapper.GenericMapper<T> extends ArraysMapper<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minidev.json.writer.ArraysMapper
ArraysMapper.GenericMapper<T>
-
-
Field Summary
-
Fields inherited from class net.minidev.json.writer.ArraysMapper
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
-
Fields inherited from class net.minidev.json.writer.JsonReaderI
base
-
-
Constructor Summary
Constructors Constructor Description GenericMapper(JsonReader base, Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tconvert(Object current)Allow a mapper to convert a temporary 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-
Methods inherited from class net.minidev.json.writer.ArraysMapper
addValue, createArray
-
Methods inherited from class net.minidev.json.writer.JsonReaderI
createObject, getType, getValue, setValue
-
-
-
-
Constructor Detail
-
GenericMapper
public GenericMapper(JsonReader base, Class<T> type)
-
-
Method Detail
-
convert
public T convert(Object current)
Description copied from class:JsonReaderIAllow a mapper to convert a temporary structure to the final data format. example: convert an List<Integer> to an int[]- Overrides:
convertin classArraysMapper<T>
-
startArray
public JsonReaderI<?> startArray(String key)
Description copied from class:JsonReaderIcalled when json-smart parser start an array.- Overrides:
startArrayin classJsonReaderI<T>- Parameters:
key- the destination key name, or null.
-
startObject
public JsonReaderI<?> startObject(String key)
Description copied from class:JsonReaderIcalled when json-smart parser meet an object key- Overrides:
startObjectin classJsonReaderI<T>- Parameters:
key- key name
-
-