public class ArraysMapper<T> extends JsonReaderI<T>
Modifier and Type | Class and Description |
---|---|
static class |
ArraysMapper.GenericMapper<T> |
Modifier and Type | Field and Description |
---|---|
static JsonReaderI<Boolean[]> |
MAPPER_BOOL |
static JsonReaderI<Byte[]> |
MAPPER_BYTE |
static JsonReaderI<Character[]> |
MAPPER_CHAR |
static JsonReaderI<Double[]> |
MAPPER_DOUBLE |
static JsonReaderI<Float[]> |
MAPPER_FLOAT |
static JsonReaderI<Integer[]> |
MAPPER_INT |
static JsonReaderI<Long[]> |
MAPPER_LONG |
static JsonReaderI<boolean[]> |
MAPPER_PRIM_BOOL |
static JsonReaderI<byte[]> |
MAPPER_PRIM_BYTE |
static JsonReaderI<char[]> |
MAPPER_PRIM_CHAR |
static JsonReaderI<double[]> |
MAPPER_PRIM_DOUBLE |
static JsonReaderI<float[]> |
MAPPER_PRIM_FLOAT |
static JsonReaderI<int[]> |
MAPPER_PRIM_INT |
static JsonReaderI<long[]> |
MAPPER_PRIM_LONG |
static JsonReaderI<short[]> |
MAPPER_PRIM_SHORT |
static JsonReaderI<Short[]> |
MAPPER_SHORT |
base
Constructor and Description |
---|
ArraysMapper(JsonReader base) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(Object current,
Object value)
add a value in an array json object.
|
T |
convert(Object current)
Allow a mapper to converte a temprary structure to the final data format.
|
Object |
createArray()
use to instantiate a new object that will be used as an array
|
createObject, getType, getValue, setValue, startArray, startObject
public static JsonReaderI<int[]> MAPPER_PRIM_INT
public static JsonReaderI<Integer[]> MAPPER_INT
public static JsonReaderI<short[]> MAPPER_PRIM_SHORT
public static JsonReaderI<Short[]> MAPPER_SHORT
public static JsonReaderI<byte[]> MAPPER_PRIM_BYTE
public static JsonReaderI<Byte[]> MAPPER_BYTE
public static JsonReaderI<char[]> MAPPER_PRIM_CHAR
public static JsonReaderI<Character[]> MAPPER_CHAR
public static JsonReaderI<long[]> MAPPER_PRIM_LONG
public static JsonReaderI<Long[]> MAPPER_LONG
public static JsonReaderI<float[]> MAPPER_PRIM_FLOAT
public static JsonReaderI<Float[]> MAPPER_FLOAT
public static JsonReaderI<double[]> MAPPER_PRIM_DOUBLE
public static JsonReaderI<Double[]> MAPPER_DOUBLE
public static JsonReaderI<boolean[]> MAPPER_PRIM_BOOL
public static JsonReaderI<Boolean[]> MAPPER_BOOL
public ArraysMapper(JsonReader base)
public Object createArray()
JsonReaderI
createArray
in class JsonReaderI<T>
public void addValue(Object current, Object value)
JsonReaderI
addValue
in class JsonReaderI<T>
public T convert(Object current)
JsonReaderI
convert
in class JsonReaderI<T>
Copyright © 2017 Chemouni Uriel. All rights reserved.