@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 Details
value
Returns a human-readable name for the annotated element.
Returns:
a human-readable name, not null
Java SE 15 & JDK 15 DRAFT 15-internal+0-adhoc.jjg.open
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2020, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy . DRAFT 15-internal+0-adhoc.jjg.open