Class ClassJsonSerializer

  • All Implemented Interfaces:
    TypeJsonSerializer<java.lang.Class>

    public class ClassJsonSerializer
    extends java.lang.Object
    implements TypeJsonSerializer<java.lang.Class>
    Class serializer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean serialize​(JsonContext jsonContext, java.lang.Class type)
      Serializes a value and writes a JSON content.
      • Methods inherited from class java.lang.Object

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

      • ClassJsonSerializer

        public ClassJsonSerializer()
    • Method Detail

      • serialize

        public boolean serialize​(JsonContext jsonContext,
                                 java.lang.Class type)
        Description copied from interface: TypeJsonSerializer
        Serializes a value and writes a JSON content. Returns true if content was written. Returns false if content for some reason was not written.
        Specified by:
        serialize in interface TypeJsonSerializer<java.lang.Class>