com.fasterxml.jackson.databind.ser.std

Class BooleanSerializer

  • All Implemented Interfaces:
    JsonFormatVisitable, SchemaAware


    public final class BooleanSerializer
    extends NonTypedScalarSerializerBase<Boolean>
    Serializer used for primitive boolean, as well as java.util.Boolean wrapper type.

    Since this is one of "native" types, no type information is ever included on serialization (unlike for most scalar types as of 1.5)

    • Field Detail

      • _forPrimitive

        protected final boolean _forPrimitive
        Whether type serialized is primitive (boolean) or wrapper (java.lang.Boolean); if true, former, if false, latter.
    • Constructor Detail

      • BooleanSerializer

        public BooleanSerializer(boolean forPrimitive)

Copyright © 2014 FasterXML. All Rights Reserved.