Use headings instead of bold text in index.md #238
This commit is contained in:
@ -10,22 +10,25 @@ tags:
|
||||
- Difficulty-Intermediate
|
||||
---
|
||||
|
||||
**Also known as:** Token
|
||||
## Also known as
|
||||
Token
|
||||
|
||||
**Intent:** Without violating encapsulation, capture and externalize an
|
||||
## Intent
|
||||
Without violating encapsulation, capture and externalize an
|
||||
object's internal state so that the object can be restored to this state later.
|
||||
|
||||

|
||||
|
||||
**Applicability:** Use the Memento pattern when
|
||||
## Applicability
|
||||
Use the Memento pattern when
|
||||
|
||||
* a snapshot of an object's state must be saved so that it can be restored to that state later, and
|
||||
* a direct interface to obtaining the state would expose implementation details and break the object's encapsulation
|
||||
|
||||
**Real world examples:**
|
||||
## Real world examples
|
||||
|
||||
* [java.util.Date](http://docs.oracle.com/javase/8/docs/api/java/util/Date.html)
|
||||
|
||||
**Credits**
|
||||
## Credits
|
||||
|
||||
* [Design Patterns: Elements of Reusable Object-Oriented Software](http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612)
|
||||
|
Reference in New Issue
Block a user