Class TwitchEnumDeserializer<E extends Enum<E>>

java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<TwitchEnum<E>>
com.github.twitch4j.common.util.TwitchEnumDeserializer<E>
All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.ContextualDeserializer, com.fasterxml.jackson.databind.deser.NullValueProvider

@Internal public class TwitchEnumDeserializer<E extends Enum<E>> extends com.fasterxml.jackson.databind.JsonDeserializer<TwitchEnum<E>> implements com.fasterxml.jackson.databind.deser.ContextualDeserializer
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    com.fasterxml.jackson.databind.JsonDeserializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    TwitchEnumDeserializer(com.fasterxml.jackson.databind.JavaType type)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonDeserializer<?>
    createContextual(com.fasterxml.jackson.databind.DeserializationContext deserializationContext, com.fasterxml.jackson.databind.BeanProperty beanProperty)
     
    deserialize(com.fasterxml.jackson.core.JsonParser jsonParser, com.fasterxml.jackson.databind.DeserializationContext deserializationContext)
     

    Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TwitchEnumDeserializer

      public TwitchEnumDeserializer()
    • TwitchEnumDeserializer

      public TwitchEnumDeserializer(com.fasterxml.jackson.databind.JavaType type)
  • Method Details

    • deserialize

      public TwitchEnum<E> deserialize(com.fasterxml.jackson.core.JsonParser jsonParser, com.fasterxml.jackson.databind.DeserializationContext deserializationContext) throws IOException
      Specified by:
      deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<TwitchEnum<E extends Enum<E>>>
      Throws:
      IOException
    • createContextual

      public com.fasterxml.jackson.databind.JsonDeserializer<?> createContextual(com.fasterxml.jackson.databind.DeserializationContext deserializationContext, com.fasterxml.jackson.databind.BeanProperty beanProperty)
      Specified by:
      createContextual in interface com.fasterxml.jackson.databind.deser.ContextualDeserializer