Package com.github.twitch4j.common.util
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
-
Method Summary
Modifier and TypeMethodDescriptioncom.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
-
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 classcom.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 interfacecom.fasterxml.jackson.databind.deser.ContextualDeserializer
-