Improve State Javadoc

This commit is contained in:
Ilkka Seppala 2015-10-04 00:19:34 +03:00
parent 74e32259be
commit 2234a25c76

View File

@ -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.
*
*/