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
      java.lang.Class component
      Component type.
    • Optional Element Summary

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

      • component

        java.lang.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