MCPcopy Create free account
hub / github.com/amikey/java-design-patterns / App

Class App

state/src/main/java/com/iluwatar/state/App.java:12–24  ·  view source on GitHub ↗

In State pattern the container object (Mammoth) has an internal state object (State) that defines the current behavior. The state object can be changed to alter the behavior. In this example the mammoth changes its behavior as time passes by.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected