Class IPAddressDeserializer.AnyVersion
java.lang.Object
tools.jackson.databind.ValueDeserializer<I>
com.github.robtimus.net.ip.jackson.databind.IPAddressDeserializer<IPAddress<?>>
com.github.robtimus.net.ip.jackson.databind.IPAddressDeserializer.AnyVersion
- All Implemented Interfaces:
NullValueProvider
- Enclosing class:
- IPAddressDeserializer<I extends IPAddress<?>>
A deserializer for
IPAddress. It can handle both IPv4Address and IPv6Address. If a property is declared as either
IPAddress<IPv4Address> or IPAddress<IPv6Address>, it will limit the deserialization to only the specified type.
In other words, trying to deserialize an IPv6 address for a property of type IPAddress<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.IPAddressDeserializer
IPAddressDeserializer.AnyVersion, IPAddressDeserializer.IPv4, IPAddressDeserializer.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.IPAddressDeserializer
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 newIPAddressdeserializer.
-
-
Method Details
-
createContextual
- Overrides:
createContextualin classValueDeserializer<IPAddress<?>>
-
handledType
- Specified by:
handledTypein classIPAddressDeserializer<IPAddress<?>>
-