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<?>>

public static class IPAddressDeserializer.AnyVersion extends IPAddressDeserializer<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