@Immutable
@Modifiable
public interface Record {
String id();
String fName();
String lName();
String mName();
}
All the fields in Record can be Nullable. One way for me to make these fields Nullable is to add @Nullable annotation on top of each field. Like this:
@Nullable
String mName()
Is there a way for me to specify at the interface level(through some annotation) that all fields can be null?
I used the following config to disable null check in builder and with methods:
The following quote is the the ValidationMethod.NONE javadoc description: