Class AsArraySerializerBase<T>

All Implemented Interfaces:
JsonFormatVisitable
Direct Known Subclasses:
CollectionSerializer, EnumSetSerializer, IndexedListSerializer, IterableSerializer, IteratorSerializer

public abstract class AsArraySerializerBase<T> extends StdContainerSerializer<T>
Base class for serializers that will output contents as JSON arrays; typically serializers used for Collection and array types.
  • Field Details

    • _elementType

      protected final JavaType _elementType
    • _staticTyping

      protected final boolean _staticTyping
    • MARKER_FOR_EMPTY

      protected static final Object MARKER_FOR_EMPTY
    • _suppressableValue

      protected final Object _suppressableValue
      Value that indicates suppression mechanism to use for content values (elements of container), if any; null for no filtering.
      Since:
      3.1
    • _suppressNulls

      protected final boolean _suppressNulls
      Flag that indicates whether nulls should be suppressed.
      Since:
      3.1
    • _unwrapSingle

      protected final Boolean _unwrapSingle
      Setting for specific local override for "unwrap single element arrays": true for enable unwrapping, false for preventing it, `null` for using global configuration.
    • _valueTypeSerializer

      protected final TypeSerializer _valueTypeSerializer
      Type serializer used for values, if any.
    • _elementSerializer

      protected final ValueSerializer<Object> _elementSerializer
      Value serializer to use, if it can be statically determined
  • Constructor Details

  • Method Details