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>
-
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_SHORTFields inherited from class net.minidev.json.writer.JsonReaderI
base -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAllow 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 keyMethods inherited from class net.minidev.json.writer.ArraysMapper
addValue, createArrayMethods inherited from class net.minidev.json.writer.JsonReaderI
createObject, getType, getValue, setValue
-
Constructor Details
-
GenericMapper
-
-
Method Details
-
convert
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
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
Description copied from class:JsonReaderIcalled when json-smart parser meet an object key- Overrides:
startObjectin classJsonReaderI<T>- Parameters:
key- key name
-