Annotation Type JsonPolymorphicTypeMap.TypeDef (1.43.0)

public static interface JsonPolymorphicTypeMap.TypeDef implements Annotation

Declares a mapping between a key value and a referenced class.

Implements

Annotation

Methods

key()

public abstract String key()

The string value to represent a specific type.

Returns
TypeDescription
String

ref()

public abstract Class<?> ref()

The Class that is referenced by this key value.

Returns
TypeDescription
Class<?>