Skip to content

Instantly share code, notes, and snippets.

@tao-qian
Created August 31, 2016 17:31
Show Gist options
  • Save tao-qian/bb4845cca304ae6b9b8e9db144ca7b1c to your computer and use it in GitHub Desktop.
Save tao-qian/bb4845cca304ae6b9b8e9db144ca7b1c to your computer and use it in GitHub Desktop.
public static class Builder {
private AccountType accountType;
public Builder accountType(AccountType accountType) {
this.accountType = accountType;
return this;
}
public AccountInfo build() {
AccountInfo temp = new AccountInfo();
temp.accountType = this.accountType;
return temp;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment