Package net.minidev.json.writer
Class ArraysMapper<T>
java.lang.Object
net.minidev.json.writer.JsonReaderI<T>
net.minidev.json.writer.ArraysMapper<T>
- Direct Known Subclasses:
ArraysMapper.GenericMapper
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic JsonReaderI<Boolean[]> static JsonReaderI<Byte[]> static JsonReaderI<Character[]> static JsonReaderI<Double[]> static JsonReaderI<Float[]> static JsonReaderI<Integer[]> static JsonReaderI<Long[]> static JsonReaderI<boolean[]> static JsonReaderI<byte[]> static JsonReaderI<char[]> static JsonReaderI<double[]> static JsonReaderI<float[]> static JsonReaderI<int[]> static JsonReaderI<long[]> static JsonReaderI<short[]> static JsonReaderI<Short[]> Fields inherited from class net.minidev.json.writer.JsonReaderI
base -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd a value in an array json object.Allow a mapper to convert a temporary structure to the final data format.use to instantiate a new object that will be used as an arrayMethods inherited from class net.minidev.json.writer.JsonReaderI
createObject, getType, getValue, setValue, startArray, startObject
-
Field Details
-
MAPPER_PRIM_INT
-
MAPPER_INT
-
MAPPER_PRIM_SHORT
-
MAPPER_SHORT
-
MAPPER_PRIM_BYTE
-
MAPPER_BYTE
-
MAPPER_PRIM_CHAR
-
MAPPER_CHAR
-
MAPPER_PRIM_LONG
-
MAPPER_LONG
-
MAPPER_PRIM_FLOAT
-
MAPPER_FLOAT
-
MAPPER_PRIM_DOUBLE
-
MAPPER_DOUBLE
-
MAPPER_PRIM_BOOL
-
MAPPER_BOOL
-
-
Constructor Details
-
ArraysMapper
-
-
Method Details
-
createArray
Description copied from class:JsonReaderIuse to instantiate a new object that will be used as an array- Overrides:
createArrayin classJsonReaderI<T>
-
addValue
Description copied from class:JsonReaderIadd a value in an array json object.- Overrides:
addValuein classJsonReaderI<T>
-
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 classJsonReaderI<T>
-