@@ -20,10 +20,10 @@ object can be restored to this state later.
20
20
21
21
##Explanation
22
22
23
- Real world example
23
+ Real- world example
24
24
25
- > We are working on astrology application where we need to analyze star properties over time. We are
26
- > creating snapshots of starstate using Memento pattern.
25
+ > We are working onan astrology application where we need to analyze star properties over time. We
26
+ > are creating snapshots of starstates using the Memento pattern.
27
27
28
28
In plain words
29
29
@@ -51,7 +51,7 @@ public enum StarType {
51
51
```
52
52
53
53
Next, let's jump straight to the essentials. Here's the` Star ` class along with the mementos that we
54
- need manipulate. Especially pay attention to` getMemento ` and` setMemento ` methods.
54
+ needto manipulate. Especially pay attention to` getMemento ` and` setMemento ` methods.
55
55
56
56
``` java
57
57
public interface StarMemento {
@@ -176,7 +176,7 @@ Use the Memento pattern when
176
176
* A direct interface to obtaining the state would expose implementation details and break the
177
177
object's encapsulation
178
178
179
- ##Real world examples
179
+ ##Known uses
180
180
181
181
* [ java.util.Date] ( http://docs.oracle.com/javase/8/docs/api/java/util/Date.html )
182
182