Class SubnetDeserializer.AnyVersion

java.lang.Object
tools.jackson.databind.ValueDeserializer<S>
com.github.robtimus.net.ip.jackson.databind.SubnetDeserializer<Subnet<?>>
com.github.robtimus.net.ip.jackson.databind.SubnetDeserializer.AnyVersion
All Implemented Interfaces:
NullValueProvider
Enclosing class:
SubnetDeserializer<S extends Subnet<?>>

public static class SubnetDeserializer.AnyVersion extends SubnetDeserializer<Subnet<?>>
A deserializer for Subnet. It can handle both IPv4Subnet and IPv6Subnet. If a property is declared as either Subnet<IPv4Address> or Subnet<IPv6Address>, it will limit the deserialization to only the specified type. In other words, trying to deserialize an IPv6 subnet for a property of type Subnet<IPv4Address> or vice versa will fail.
Author:
Rob Spoor