Module org.eclipse.yasson
Class TypeSerializers
java.lang.Object
org.eclipse.yasson.internal.serializer.types.TypeSerializers
Specific type serializers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModelSerializergetTypeSerializer(Class<?> clazz, Customization customization, JsonbContext jsonbContext) Create new type serializer.static ModelSerializergetTypeSerializer(List<Type> chain, Class<?> clazz, Customization customization, JsonbContext jsonbContext, boolean key) Create new type serializer.static booleanisSupportedMapKey(Class<?> clazz) Whether type is the supported key type.
-
Method Details
-
isSupportedMapKey
Whether type is the supported key type.- Parameters:
clazz- key type- Returns:
- whether type is supported key type
-
getTypeSerializer
public static ModelSerializer getTypeSerializer(Class<?> clazz, Customization customization, JsonbContext jsonbContext) Create new type serializer.- Parameters:
clazz- type of the serializercustomization- serializer customizationjsonbContext- jsonb context- Returns:
- new type serializer
-
getTypeSerializer
public static ModelSerializer getTypeSerializer(List<Type> chain, Class<?> clazz, Customization customization, JsonbContext jsonbContext, boolean key) Create new type serializer.- Parameters:
chain- chain of the type predecessorsclazz- type of the serializercustomization- serializer customizationjsonbContext- jsonb contextkey- whether serializer is a key- Returns:
- new type serializer
-