Skip to content

Commit 2234a25

Browse files
committed
Improve State Javadoc
1 parent 74e3225 commit 2234a25

File tree

1 file changed

+5
-1
lines changed
  • state/src/main/java/com/iluwatar/state

1 file changed

+5
-1
lines changed

state/src/main/java/com/iluwatar/state/App.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
/**
44
*
5-
* In State pattern the container object ({@link Mammoth}) has an internal state object ({@link State}) that
5+
* In State pattern the container object has an internal state object that
66
* defines the current behavior. The state object can be changed to alter the
77
* behavior.
88
* <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>
913
* In this example the {@link Mammoth} changes its behavior as time passes by.
1014
*
1115
*/

0 commit comments

Comments
 (0)