Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
{{#model}}
public static class Builder {
{{#vars}}
private {{{datatypeWithEnum}}} {{name}};
{{/vars}}
{{#vars}}
public Builder {{name}}({{{datatypeWithEnum}}} {{name}}) {
this.{{name}} = {{name}};
return this;
}
{{/vars}}
public {{classname}} build() {
{{classname}} temp = new {{classname}}();
{{#vars}}
temp.{{name}} = this.{{name}};
{{/vars}}
return temp;
}
}
{{/model}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment