Class EnumCodecProvider

    • Constructor Detail

      • EnumCodecProvider

        public EnumCodecProvider()
    • Method Detail

      • get

        public <T> Codec<T> get​(Class<T> type,
                                CodecRegistry registry)
        Looks up the codec for the type
        Specified by:
        get in interface CodecProvider
        Type Parameters:
        T - the type of the enum
        Parameters:
        type - the type to look up
        registry - the registry to use
        Returns:
        the codec if found or null