Improve State Javadoc
This commit is contained in:
parent
74e32259be
commit
2234a25c76
@ -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
|
* defines the current behavior. The state object can be changed to alter the
|
||||||
* behavior.
|
* behavior.
|
||||||
* <p>
|
* <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.
|
* In this example the {@link Mammoth} changes its behavior as time passes by.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user