Annotation Type Map


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

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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether keys may be null.
    boolean
    Whether values may be null.
  • Element Details

    • key

      Class<?> key
      Key type.
    • value

      Class<?> value
      Value type.
    • keyIsNullable

      boolean keyIsNullable
      Whether keys may be null.
      Default:
      true
    • valueIsNullable

      boolean valueIsNullable
      Whether values may be null.
      Default:
      true