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

Method changeState

patterns/state/StateMachineDemo.java:56–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 ).iterator();
55 Washer() { runAll(); }
56 @Override public boolean changeState() {
57 if(!states.hasNext())
58 return false;
59 // Set the surrogate reference
60 // to a new State object:
61 currentState = states.next();
62 return true;
63 }
64}
65
66public class StateMachineDemo {

Callers

nothing calls this directly

Calls 2

nextMethod · 0.65
hasNextMethod · 0.45

Tested by

no test coverage detected