Class StdJdkSerializers.AtomicBooleanSerializer

    • Constructor Detail

      • AtomicBooleanSerializer

        public AtomicBooleanSerializer()
    • Method Detail

      • serialize

        public void serialize​(java.util.concurrent.atomic.AtomicBoolean value,
                              JsonGenerator gen,
                              SerializerProvider provider)
                       throws java.io.IOException
        Description copied from class: JsonSerializer
        Method that can be called to ask implementation to serialize values of type this serializer handles.
        Specified by:
        serialize in class StdSerializer<java.util.concurrent.atomic.AtomicBoolean>
        Parameters:
        value - Value to serialize; can not be null.
        gen - Generator used to output resulting Json content
        provider - Provider that can be used to get serializers for serializing Objects value contains, if any.
        Throws:
        java.io.IOException
      • getSchema

        public JsonNode getSchema​(SerializerProvider provider,
                                  java.lang.reflect.Type typeHint)
        Description copied from class: StdSerializer
        Default implementation simply claims type is "string"; usually overriden by custom serializers.
        Specified by:
        getSchema in interface SchemaAware
        Overrides:
        getSchema in class StdScalarSerializer<java.util.concurrent.atomic.AtomicBoolean>
        Parameters:
        provider - The serializer provider.
        typeHint - A hint about the type.
        Returns:
        Json-schema for this serializer.