@Retention(value=CLASS)
@Target(value=FIELD)
public @interface CRecordComponent
Object.toString()/Object.equals(Object)/Object.hashCode() methods get reimplemented with the new components.
The methods will be ignored if they are overridden manually.@CRecordComponent private final String text;
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
addConstructor |
boolean |
addEquals |
boolean |
addGetter |
boolean |
addHashCode |
boolean |
addRecordComponent |
boolean |
addToString |
public abstract boolean addRecordComponent
public abstract boolean addConstructor
public abstract boolean addGetter
public abstract boolean addToString
Object.toString() method