Annotation Interface DefaultMapKey


@Retention(RUNTIME) @Target({CONSTRUCTOR,FIELD,RECORD_COMPONENT}) public @interface DefaultMapKey
An annotation for specifying the default key to put the default value to the map.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns default key of the map.
  • Element Details

    • value

      String value
      Returns default key of the map.
      Returns:
      a default key of the map