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(Map<TypeKey,JsonSerializer<Object>> serializers) |
Modifier and Type | Method and Description |
---|---|
static ReadOnlyClassToSerializerMap |
from(HashMap<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(Map<TypeKey,JsonSerializer<Object>> serializers)
public static ReadOnlyClassToSerializerMap from(HashMap<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 © 2014–2015 FasterXML. All rights reserved.