public final class OnlyOneFieldTypeAdapterFactory extends Object implements com.google.gson.TypeAdapterFactory
TypeAdapterFactory implementation which creates instances of OnlyOneFieldTypeAdapter when a new object is
required to be serialized and that type is a registered TypeAnnotation.| Constructor and Description |
|---|
OnlyOneFieldTypeAdapterFactory(Class<? extends TypeAnnotation>... typeAnnotations) |
| Modifier and Type | Method and Description |
|---|---|
<T> com.google.gson.TypeAdapter<T> |
create(com.google.gson.Gson gson,
com.google.gson.reflect.TypeToken<T> type) |
@SafeVarargs public OnlyOneFieldTypeAdapterFactory(Class<? extends TypeAnnotation>... typeAnnotations)
Copyright © 2024 MuleSoft, Inc.. All rights reserved.