@Target(value=FIELD) @Retention(value=RUNTIME) @Beta public @interface JsonPolymorphicTypeMap
Beta
A data structure must have no more than one field with this annotation present. The annotated
field's type must be considered "primitive" by Data.isPrimitive(Type). The field's value
will be compared against the JsonPolymorphicTypeMap.TypeDef.key() using Object.toString().
| Modifier and Type | Required Element and Description |
|---|---|
JsonPolymorphicTypeMap.TypeDef[] |
typeDefinitions
The list of mappings from key value to a referenced
Class. |
public abstract JsonPolymorphicTypeMap.TypeDef[] typeDefinitions
Class.Copyright © 2011-2017 Google. All Rights Reserved.