public final class ReadOnlyClassToSerializerMap
extends java.lang.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(java.util.Map<TypeKey,JsonSerializer<java.lang.Object>> serializers) |
Modifier and Type | Method and Description |
---|---|
static ReadOnlyClassToSerializerMap |
from(java.util.HashMap<TypeKey,JsonSerializer<java.lang.Object>> src)
Factory method for constructing an instance.
|
int |
size() |
JsonSerializer<java.lang.Object> |
typedValueSerializer(java.lang.Class<?> type) |
JsonSerializer<java.lang.Object> |
typedValueSerializer(JavaType type) |
JsonSerializer<java.lang.Object> |
untypedValueSerializer(java.lang.Class<?> type) |
JsonSerializer<java.lang.Object> |
untypedValueSerializer(JavaType type) |
public ReadOnlyClassToSerializerMap(java.util.Map<TypeKey,JsonSerializer<java.lang.Object>> serializers)
public static ReadOnlyClassToSerializerMap from(java.util.HashMap<TypeKey,JsonSerializer<java.lang.Object>> src)
public int size()
public JsonSerializer<java.lang.Object> typedValueSerializer(JavaType type)
public JsonSerializer<java.lang.Object> typedValueSerializer(java.lang.Class<?> type)
public JsonSerializer<java.lang.Object> untypedValueSerializer(JavaType type)
public JsonSerializer<java.lang.Object> untypedValueSerializer(java.lang.Class<?> type)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"