MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / Wash

Class Wash

patterns/state/StateMachineDemo.java:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25// A different subclass for each state:
26
27class Wash implements State {
28 @Override public void run() {
29 System.out.println("Washing");
30 new Nap(0.5);
31 }
32}
33
34class Spin implements State {
35 @Override public void run() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected