W3cubDocs

/OpenJDK 21

Annotation Interface 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

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

Element Details

value

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

© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.jfr/jdk/jfr/Label.html