Class JDKMiscSerializers.AtomicBooleanSerializer

All Implemented Interfaces:
JsonFormatVisitable
Enclosing class:
JDKMiscSerializers

public static class JDKMiscSerializers.AtomicBooleanSerializer extends StdScalarSerializer<AtomicBoolean>
  • Constructor Details

    • AtomicBooleanSerializer

      public AtomicBooleanSerializer()
  • Method Details

    • serialize

      public void serialize(AtomicBoolean value, tools.jackson.core.JsonGenerator gen, SerializationContext provider) throws tools.jackson.core.JacksonException
      Description copied from class: ValueSerializer
      Method that can be called to ask implementation to serialize values of type this serializer handles.
      Specified by:
      serialize in class StdSerializer<AtomicBoolean>
      Parameters:
      value - Value to serialize; can not be null.
      gen - Generator used to output resulting Json content
      provider - Context that can be used to get serializers for serializing Objects value contains, if any.
      Throws:
      tools.jackson.core.JacksonException
    • acceptJsonFormatVisitor

      public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
      Description copied from class: StdSerializer
      Default implementation specifies no format. This behavior is usually overriden by custom serializers.
      Specified by:
      acceptJsonFormatVisitor in interface JsonFormatVisitable
      Overrides:
      acceptJsonFormatVisitor in class StdScalarSerializer<AtomicBoolean>
      typeHint - Type of element (entity like property) being visited