public final class ImmutableMapSerializerExtension extends java.lang.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 |
|---|---|
java.util.Optional<Serializer> |
getSerializer(javax.lang.model.type.TypeMirror typeMirror,
SerializerFactory factory,
javax.annotation.processing.ProcessingEnvironment processingEnv)
|
public java.util.Optional<Serializer> getSerializer(javax.lang.model.type.TypeMirror typeMirror, SerializerFactory factory, javax.annotation.processing.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 © 2020 Google LLC. All Rights Reserved.