mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-14 12:16:46 +00:00
Added real world example for Command.
This commit is contained in:
1 parent
eef54b41bf
commit
0ad681831b
1 file changed
+3
@@ -248,6 +248,9 @@
|
|||||||
* implement callback functionality
|
* implement callback functionality
|
||||||
* implement the undo functionality
|
* implement the undo functionality
|
||||||
|
|
||||||
|
**Real world examples:**
|
||||||
|
* [java.lang.Runnable](http://docs.oracle.com/javase/6/docs/api/java/lang/Runnable.html)
|
||||||
|
|
||||||
## <a name="interpreter">Interpreter</a> [↑](#list-of-design-patterns)
|
## <a name="interpreter">Interpreter</a> [↑](#list-of-design-patterns)
|
||||||
**Intent:** Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.
|
**Intent:** Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user