Package jodd.json.impl
Class ArraysJsonSerializer<K>
- java.lang.Object
-
- jodd.json.impl.ValueJsonSerializer<java.lang.Object>
-
- jodd.json.impl.ArraysJsonSerializer<K>
-
- All Implemented Interfaces:
TypeJsonSerializer<java.lang.Object>
public class ArraysJsonSerializer<K> extends ValueJsonSerializer<java.lang.Object>
Arrays serializer. May be overridden for specific types for better performances.
-
-
Constructor Summary
Constructors Constructor Description ArraysJsonSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Kget(K[] array, int index)Returns array's element at given index.protected intgetLength(K[] array)Returns array's length.voidserializeValue(JsonContext jsonContext, java.lang.Object array)Performs the serialization of the value.-
Methods inherited from class jodd.json.impl.ValueJsonSerializer
serialize
-
-
-
-
Method Detail
-
getLength
protected int getLength(K[] array)
Returns array's length.
-
serializeValue
public void serializeValue(JsonContext jsonContext, java.lang.Object array)
Description copied from class:ValueJsonSerializerPerforms the serialization of the value.- Specified by:
serializeValuein classValueJsonSerializer<java.lang.Object>
-
-