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<?>>
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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.robtimus.net.ip.jackson.databind.SubnetDeserializer
SubnetDeserializer.AnyVersion, SubnetDeserializer.IPv4, SubnetDeserializer.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.SubnetDeserializer
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 newSubnetdeserializer.
-
-
Method Details
-
createContextual
- Overrides:
createContextualin classValueDeserializer<Subnet<?>>
-
handledType
- Specified by:
handledTypein classSubnetDeserializer<Subnet<?>>
-