Class ReadOnlyClassToSerializerMap


  • public final class ReadOnlyClassToSerializerMap
    extends java.lang.Object
    Optimized lookup table for accessing two types of serializers; typed and non-typed. Only accessed from a single thread, so no synchronization needed for accessors.
    Since:
    1.7
    • Field Detail

      • _map

        protected final JsonSerializerMap _map
        Actual mappings from type key to serializers
      • _cacheKey

        protected final SerializerCache.TypeKey _cacheKey
        We'll reuse key class to avoid unnecessary instantiations; since this is not shared between threads, we can just reuse single instance.