Class StdKeySerializers


  • public abstract class StdKeySerializers
    extends java.lang.Object
    • Constructor Detail

      • StdKeySerializers

        public StdKeySerializers()
    • Method Detail

      • getStdKeySerializer

        public static JsonSerializer<java.lang.Object> getStdKeySerializer​(SerializationConfig config,
                                                                           java.lang.Class<?> rawKeyType,
                                                                           boolean useDefault)
        Parameters:
        config - Serialization configuration in use, may be needed in choosing serializer to use
        rawKeyType - Type of key values to serialize
        useDefault - If no match is found, should we return fallback deserializer (true), or null (false)?
      • getFallbackKeySerializer

        public static JsonSerializer<java.lang.Object> getFallbackKeySerializer​(SerializationConfig config,
                                                                                java.lang.Class<?> rawKeyType)
        Method called if no specified key serializer was located; will return a "default" key serializer.
        Since:
        2.7
      • getDefault

        @Deprecated
        public static JsonSerializer<java.lang.Object> getDefault()
        Deprecated.
        since 2.7