A simple example:
@AutoBuilder(ofClass = Person.class)
abstract class PersonBuilder {
static PersonBuilder builder() {
return new AutoBuilder_PersonBuilder();
}
abstract PersonBuilder setName(String name);
abstract PersonBuilder setId(int id);
abstract Person build();
}
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Class | ofClass()
The class or interface containing the constructor or static method that the generated builder will eventually call. |
| callMethod | back to summary |
|---|---|
| public String callMethod() The static method from | |
| ofClass | back to summary |
|---|---|
| public Class The class or interface containing the constructor or static method that the generated builder
will eventually call. By default this is the class or interface that contains the class
or interface with the | |