mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 06:15:36 +00:00
#984 update Builder readme
This commit is contained in:
1 parent
0272d71851
commit
2628cc0dfc
1 file changed
+1
-1
+1
-1
@@ -110,7 +110,7 @@ And then we have the builder
|
|||||||
And then it can be used as:
|
And then it can be used as:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
Hero mage = new Hero.Builder(Profession.MAGE, "Riobard").withHairColor(HairColor.BLACK).withWeapon(Weapon.DAGGER).build();
|
var mage = new Hero.Builder(Profession.MAGE, "Riobard").withHairColor(HairColor.BLACK).withWeapon(Weapon.DAGGER).build();
|
||||||
```
|
```
|
||||||
|
|
||||||
## Applicability
|
## Applicability
|
||||||
|
|||||||
Reference in new issue
Block a user