Class TypeSerializers

java.lang.Object
org.eclipse.yasson.internal.serializer.types.TypeSerializers

public class TypeSerializers extends Object
Specific type serializers.
  • Method Details

    • isSupportedMapKey

      public static boolean isSupportedMapKey(Class<?> clazz)
      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 serializer
      customization - serializer customization
      jsonbContext - 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 predecessors
      clazz - type of the serializer
      customization - serializer customization
      jsonbContext - jsonb context
      key - whether serializer is a key
      Returns:
      new type serializer