@AutoService(value=SerializerExtension.class) public final class ImmutableMapSerializerExtension extends Object implements SerializerExtension
SerializerExtension that deserializes objects inside an ImmutableMap.
Enables unserializable objects inside an ImmutableMap to be serializable.
| Constructor and Description |
|---|
ImmutableMapSerializerExtension() |
| Modifier and Type | Method and Description |
|---|---|
Optional<Serializer> |
getSerializer(TypeMirror typeMirror,
SerializerFactory factory,
ProcessingEnvironment processingEnv)
|
public Optional<Serializer> getSerializer(TypeMirror typeMirror, SerializerFactory factory, ProcessingEnvironment processingEnv)
SerializerExtensionSerializer if this SerializerExtension applies to the given type. Otherwise, Optional.empty is returned.getSerializer in interface SerializerExtensiontypeMirror - the type being serializedfactory - a SerializerFactory that can be used to serialize nested typesprocessingEnv - the processing environment provided by the annotation processing frameworkCopyright © 2022 Google LLC. All rights reserved.