Module jdk.jfr
Package jdk.jfr

Annotation Type Label


  • @Target({TYPE,FIELD,METHOD})
    @Retention(RUNTIME)
    public @interface Label
    Annotation that sets a human-readable name for an element (for example, "Maximum Throughput").

    Use headline-style capitalization, capitalize the first and last words, and all nouns, pronouns, adjectives, verbs and adverbs. Do not include ending punctuation.

    The label should not be used as an identifier, see Name.

    Since:
    9
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value
      Returns a human-readable name for the annotated element.
    • Element Detail

      • value

        String value
        Returns a human-readable name for the annotated element.
        Returns:
        a human-readable name, not null

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部