Created
August 31, 2016 17:31
-
-
Save tao-qian/bb4845cca304ae6b9b8e9db144ca7b1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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