File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ process can create different representations.
16
16
17
17
## Explanation
18
18
19
- Real world example
19
+ Real- world example
20
20
21
21
> Imagine a character generator for a role-playing game. The easiest option is to let the computer
22
22
> create the character for you. If you want to manually select the character details like
23
- > profession, gender, hair color etc. the character generation becomes a step-by-step process that
23
+ > profession, gender, hair color, etc. the character generation becomes a step-by-step process that
24
24
> completes when all the selections are ready.
25
25
26
26
In plain words
@@ -49,7 +49,7 @@ anti-pattern.
49
49
50
50
** Programmatic Example**
51
51
52
- The sane alternative is to use the Builder pattern. First of all we have our hero that we want to
52
+ The sane alternative is to use the Builder pattern. First of all, we have our hero that we want to
53
53
create:
54
54
55
55
``` java
@@ -134,7 +134,7 @@ Use the Builder pattern when
134
134
* The algorithm for creating a complex object should be independent of the parts that make up the object and how they're assembled
135
135
* The construction process must allow different representations for the object that's constructed
136
136
137
- ## Real world examples
137
+ ## Real- world examples
138
138
139
139
* [ java.lang.StringBuilder] ( http://docs.oracle.com/javase/8/docs/api/java/lang/StringBuilder.html )
140
140
* [ java.nio.ByteBuffer] ( http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html#put-byte- ) as well as similar buffers such as FloatBuffer, IntBuffer and so on.
You can’t perform that action at this time.
0 commit comments