public final class ImmutableListSerializerExtension extends java.lang.Object implements SerializerExtension
SerializerExtension that deserializes objects inside an ImmutableList.
Enables unserializable objects inside an ImmutableList to be serializable.
| Constructor and Description |
|---|
ImmutableListSerializerExtension() |
| 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.