Package io.avaje.jsonb
Annotation Type Json.SubType
-
@Retention(CLASS) @Target(TYPE) @Repeatable(SubTypes.class) public static @interface Json.SubType
Specify the subtypes that a given type can be represented as.This is used on an interface type, abstract type or type with inheritance to indicate all the concrete subtypes that can represent the type.
In the example below the abstract Vehicle type has 2 concrete subtypes of Car and Truck that can represent the type.
{@code