Class IPRangeDeserializer.AnyVersion
java.lang.Object
tools.jackson.databind.ValueDeserializer<R>
com.github.robtimus.net.ip.jackson.databind.IPRangeDeserializer<IPRange<?>>
com.github.robtimus.net.ip.jackson.databind.IPRangeDeserializer.AnyVersion
- All Implemented Interfaces:
NullValueProvider
- Enclosing class:
- IPRangeDeserializer<R extends IPRange<?>>
A deserializer for
IPRange. It can handle both IPv4Range and IPv6Range. If a property is declared as either
IPRange<IPv4Address> or IPRange<IPv6Address>, it will limit the deserialization to only the specified type.
In other words, trying to deserialize an IPv6 range for a property of type IPRange<IPv4Address> or vice versa will fail.- Author:
- Rob Spoor
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.robtimus.net.ip.jackson.databind.IPRangeDeserializer
IPRangeDeserializer.AnyVersion, IPRangeDeserializer.IPv4, IPRangeDeserializer.IPv6Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer
ValueDeserializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContextual(DeserializationContext ctxt, BeanProperty property) Class<?>Methods inherited from class com.github.robtimus.net.ip.jackson.databind.IPRangeDeserializer
deserializeMethods inherited from class tools.jackson.databind.ValueDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, isCachable, logicalType, replaceDelegatee, resolve, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
AnyVersion
public AnyVersion()Creates a newIPRangedeserializer.
-
-
Method Details
-
createContextual
- Overrides:
createContextualin classValueDeserializer<IPRange<?>>
-
handledType
- Specified by:
handledTypein classIPRangeDeserializer<IPRange<?>>
-