From d5f52edecfd8cf56ae79263035af094b5a149176 Mon Sep 17 00:00:00 2001 From: Ilkka Seppala Date: Sat, 3 Oct 2015 20:21:56 +0300 Subject: [PATCH] Improve Command Javadoc --- command/src/main/java/com/iluwatar/command/App.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command/src/main/java/com/iluwatar/command/App.java b/command/src/main/java/com/iluwatar/command/App.java index fc05afa66..b421b683b 100644 --- a/command/src/main/java/com/iluwatar/command/App.java +++ b/command/src/main/java/com/iluwatar/command/App.java @@ -2,7 +2,9 @@ package com.iluwatar.command; /** * - * In Command pattern actions are objects that can be executed and undone. + * The Command pattern is a behavioral design pattern in which an object is used to encapsulate all information + * needed to perform an action or trigger an event at a later time. This information includes the method name, + * the object that owns the method and values for the method parameters. *

* Four terms always associated with the command pattern are command, receiver, invoker and client. A command * object (spell) knows about the receiver (target) and invokes a method of the receiver. Values for parameters of