Grammatical fixes to memento
This commit is contained in:
parent
a403c84add
commit
2b7cc410b0
@ -20,10 +20,10 @@ object can be restored to this state later.
|
||||
|
||||
## Explanation
|
||||
|
||||
Real world example
|
||||
Real-world example
|
||||
|
||||
> We are working on astrology application where we need to analyze star properties over time. We are
|
||||
> creating snapshots of star state using Memento pattern.
|
||||
> We are working on an astrology application where we need to analyze star properties over time. We
|
||||
> are creating snapshots of star states using the Memento pattern.
|
||||
|
||||
In plain words
|
||||
|
||||
@ -51,7 +51,7 @@ public enum StarType {
|
||||
```
|
||||
|
||||
Next, let's jump straight to the essentials. Here's the `Star` class along with the mementos that we
|
||||
need manipulate. Especially pay attention to `getMemento` and `setMemento` methods.
|
||||
need to manipulate. Especially pay attention to `getMemento` and `setMemento` methods.
|
||||
|
||||
```java
|
||||
public interface StarMemento {
|
||||
@ -176,7 +176,7 @@ Use the Memento pattern when
|
||||
* A direct interface to obtaining the state would expose implementation details and break the
|
||||
object's encapsulation
|
||||
|
||||
## Real world examples
|
||||
## Known uses
|
||||
|
||||
* [java.util.Date](http://docs.oracle.com/javase/8/docs/api/java/util/Date.html)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user