Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected K get​(K[] array, int index)
      Returns array's element at given index.
      protected int getLength​(K[] array)
      Returns array's length.
      void serializeValue​(JsonContext jsonContext, java.lang.Object array)
      Performs the serialization of the value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArraysJsonSerializer

        public ArraysJsonSerializer()
    • Method Detail

      • getLength

        protected int getLength​(K[] array)
        Returns array's length.
      • get

        protected K get​(K[] array,
                        int index)
        Returns array's element at given index.