From 2234a25c76d0e926c5e078883c9553a670f78cc8 Mon Sep 17 00:00:00 2001 From: Ilkka Seppala Date: Sun, 4 Oct 2015 00:19:34 +0300 Subject: [PATCH] Improve State Javadoc --- state/src/main/java/com/iluwatar/state/App.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/state/src/main/java/com/iluwatar/state/App.java b/state/src/main/java/com/iluwatar/state/App.java index 5b39d02f7..95d411076 100644 --- a/state/src/main/java/com/iluwatar/state/App.java +++ b/state/src/main/java/com/iluwatar/state/App.java @@ -2,10 +2,14 @@ package com.iluwatar.state; /** * - * In State pattern the container object ({@link Mammoth}) has an internal state object ({@link State}) that + * In State pattern the container object has an internal state object that * defines the current behavior. The state object can be changed to alter the * behavior. *

+ * This can be a cleaner way for an object to change its behavior at runtime + * without resorting to large monolithic conditional statements and thus improves + * maintainability. + *

* In this example the {@link Mammoth} changes its behavior as time passes by. * */