APIdia Launch Partner
Top Description Methods
jdk.jfr

public @Interface Label

extends Annotation
Annotations
@MetadataDefinition
@Target:TYPE, FIELD, METHOD
@Retention:RUNTIME
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

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

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a human-readable name
value
()

Returns a human-readable name for the annotated element.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

Returns a human-readable name for the annotated element.

Returns:String

a human-readable name