We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74e3225 commit 2234a25Copy full SHA for 2234a25
state/src/main/java/com/iluwatar/state/App.java
@@ -2,10 +2,14 @@
2
3
/**
4
*
5
- * 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
6
* defines the current behavior. The state object can be changed to alter the
7
* behavior.
8
* <p>
9
+ * This can be a cleaner way for an object to change its behavior at runtime
10
+ * without resorting to large monolithic conditional statements and thus improves
11
+ * maintainability.
12
+ * <p>
13
* In this example the {@link Mammoth} changes its behavior as time passes by.
14
15
*/
0 commit comments