Record attribute (JVMS 4.7.30),
which indicates that this class is a record class and the record
components.
This attribute only appears on classes, and does not permit multiple instances in a class. It has a data dependency on the constant pool.
The attribute was introduced in the Java SE Platform version 16, major version 60.
Record Attribute
Attributes#record(), Class#isRecord(), Class#getRecordComponents()
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: the components of this record classReturns the components of this record class. |
| public static RecordAttribute | Returns: aRecord attributethe record components components)Returns a |
| public static RecordAttribute | Returns: aRecord attributethe record components components)Returns a |
| components | back to summary |
|---|---|
| public List Returns the components of this record class.
| |
| of | back to summary |
|---|---|
| public static RecordAttribute of(List<RecordComponentInfo> components) Returns a
| |
| of | back to summary |
|---|---|
| public static RecordAttribute of(RecordComponentInfo... components) Returns a
| |