Annotation Type JsonPolymorphicTypeMap.TypeDef (1.45.1)

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
Type Description
String

ref()

public abstract Class<?> ref()

The Class that is referenced by this key value.

Returns
Type Description
Class<?>