Class ExpandableFieldSerializer

  • All Implemented Interfaces:
    com.google.gson.JsonSerializer<ExpandableField<?>>

    public class ExpandableFieldSerializer
    extends java.lang.Object
    implements com.google.gson.JsonSerializer<ExpandableField<?>>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.gson.JsonElement serialize​(ExpandableField<?> src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Serializes an expandable attribute into a JSON string.
      • Methods inherited from class java.lang.Object

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

      • ExpandableFieldSerializer

        public ExpandableFieldSerializer()
    • Method Detail

      • serialize

        public com.google.gson.JsonElement serialize​(ExpandableField<?> src,
                                                     java.lang.reflect.Type typeOfSrc,
                                                     com.google.gson.JsonSerializationContext context)
        Serializes an expandable attribute into a JSON string.
        Specified by:
        serialize in interface com.google.gson.JsonSerializer<ExpandableField<?>>