Class PropertySerializerMap.Multi
java.lang.Object
tools.jackson.databind.ser.impl.PropertySerializerMap
tools.jackson.databind.ser.impl.PropertySerializerMap.Multi
- Enclosing class:
PropertySerializerMap
-
Nested Class Summary
Nested classes/interfaces inherited from class PropertySerializerMap
PropertySerializerMap.SerializerAndMapResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PropertySerializerMap.TypeAndSerializer[]private static final intLet's limit number of serializers we actually cache; linear lookup won't scale too well beyond smallish number, and if we really want to support larger collections should use a hash map.Fields inherited from class PropertySerializerMap
_resetWhenFull -
Constructor Summary
ConstructorsConstructorDescriptionMulti(PropertySerializerMap base, PropertySerializerMap.TypeAndSerializer[] entries) -
Method Summary
Modifier and TypeMethodDescriptionnewWith(Class<?> type, ValueSerializer<Object> serializer) serializerFor(Class<?> type) Main lookup method.Methods inherited from class PropertySerializerMap
addSerializer, addSerializer, emptyForProperties, emptyForRootValues, findAndAddKeySerializer, findAndAddPrimarySerializer, findAndAddRootValueSerializer, findAndAddRootValueSerializer, findAndAddSecondarySerializer, findAndAddSecondarySerializer, findAndAddSecondarySerializer, findAndAddSecondarySerializer
-
Field Details
-
MAX_ENTRIES
private static final int MAX_ENTRIESLet's limit number of serializers we actually cache; linear lookup won't scale too well beyond smallish number, and if we really want to support larger collections should use a hash map. But it seems unlikely this is a common use case so for now let's just stop building after hard-coded limit. 8 sounds like a reasonable stab for now.- See Also:
-
_entries
-
-
Constructor Details
-
Multi
-
-
Method Details
-
serializerFor
Description copied from class:PropertySerializerMapMain lookup method. Takes a "raw" type since usage is always from place where parameterization is fixed such that there cannot be type-parametric variations.- Specified by:
serializerForin classPropertySerializerMap
-
newWith
- Specified by:
newWithin classPropertySerializerMap
-