public final class ReadOnlyClassToSerializerMap extends Object
Note that before 2.6 this class was much smaller, and referred most
operations to separate JsonSerializerMap
, but in 2.6
functions were combined.
Constructor and Description |
---|
ReadOnlyClassToSerializerMap(LRUMap<TypeKey,JsonSerializer<Object>> src) |
Modifier and Type | Method and Description |
---|---|
static ReadOnlyClassToSerializerMap |
from(LRUMap<TypeKey,JsonSerializer<Object>> src)
Factory method for constructing an instance.
|
int |
size() |
JsonSerializer<Object> |
typedValueSerializer(Class<?> type) |
JsonSerializer<Object> |
typedValueSerializer(JavaType type) |
JsonSerializer<Object> |
untypedValueSerializer(Class<?> type) |
JsonSerializer<Object> |
untypedValueSerializer(JavaType type) |
public ReadOnlyClassToSerializerMap(LRUMap<TypeKey,JsonSerializer<Object>> src)
public static ReadOnlyClassToSerializerMap from(LRUMap<TypeKey,JsonSerializer<Object>> src)
public int size()
public JsonSerializer<Object> typedValueSerializer(JavaType type)
public JsonSerializer<Object> typedValueSerializer(Class<?> type)
public JsonSerializer<Object> untypedValueSerializer(JavaType type)
public JsonSerializer<Object> untypedValueSerializer(Class<?> type)
Copyright © 2008–2023 FasterXML. All rights reserved.