Annotation Interface PolymorphicTypes.Type

Enclosing class:
PolymorphicTypes

@Target(TYPE) @Retention(RUNTIME) public static @interface PolymorphicTypes.Type
Indicates a subtype of a Polymorphic type.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the class of the subtype.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the alias of the subtype.
  • Element Details

    • type

      Class<?> type
      Returns the class of the subtype.
      Returns:
      class of the subtype
    • alias

      String alias
      Returns the alias of the subtype. If the alias returned by this method is blank, the Java class name ist used.
      Returns:
      alias of the subtype
      See Also:
      Default:
      ""