Annotation Type Array


@Target(FIELD) @Retention(RUNTIME) public @interface Array
Annotation that indicates that a field is an array type.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Component type.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether components may be null.
    long
    Maximum number of elements in the array.
  • Element Details

    • component

      Class<?> component
      Component type.
    • componentIsNullable

      boolean componentIsNullable
      Whether components may be null.
      Default:
      false
    • maximumCardinality

      long maximumCardinality
      Maximum number of elements in the array. -1 means no maximum.
      Default:
      -1L