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
      java.lang.Class key
      Key type.
      java.lang.Class value
      Value type.
    • Optional Element Summary

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

      • key

        java.lang.Class key
        Key type.
      • value

        java.lang.Class value
        Value type.
      • keyIsNullable

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

        boolean valueIsNullable
        Whether values may be null.
        Default:
        true