Class IPAddressSerializer.AnyVersion
java.lang.Object
tools.jackson.databind.ValueSerializer<I>
com.github.robtimus.net.ip.jackson.databind.IPAddressSerializer<IPAddress<?>>
com.github.robtimus.net.ip.jackson.databind.IPAddressSerializer.AnyVersion
- All Implemented Interfaces:
JsonFormatVisitable
- Enclosing class:
- IPAddressSerializer<I extends IPAddress<?>>
- Author:
- Rob Spoor
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.robtimus.net.ip.jackson.databind.IPAddressSerializer
IPAddressSerializer.AnyVersion, IPAddressSerializer.IPv4, IPAddressSerializer.IPv6Nested classes/interfaces inherited from class tools.jackson.databind.ValueSerializer
ValueSerializer.None -
Constructor Summary
ConstructorsConstructorDescriptionAnyVersion(IPAddressFormatter<? super IPAddress<?>> formatter) Creates a newIPAddressserializer. -
Method Summary
Methods inherited from class com.github.robtimus.net.ip.jackson.databind.IPAddressSerializer
serializeMethods inherited from class tools.jackson.databind.ValueSerializer
acceptJsonFormatVisitor, createContextual, getDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, resolve, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties
-
Constructor Details
-
AnyVersion
Creates a newIPAddressserializer.- Parameters:
formatter- The formatter to use. Ifnull,IPAddress.toString()will be used instead.
-
-
Method Details
-
handledType
- Specified by:
handledTypein classIPAddressSerializer<IPAddress<?>>
-