提交 2234a25c 编写于 作者: I Ilkka Seppala

Improve State Javadoc

上级 74e32259
......@@ -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.
* <p>
* 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.
* <p>
* In this example the {@link Mammoth} changes its behavior as time passes by.
*
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册