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

Method forward

concurrent/Pizza.java:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 int effort; // Needed to get to the next step
13 Step(int effort) { this.effort = effort; }
14 Step forward() {
15 if(equals(BOXED)) return BOXED;
16 new Nap(effort * 0.1);
17 return values()[ordinal() + 1];
18 }
19 }
20 private Step step = Step.DOUGH;
21 private final int id;

Callers 1

nextMethod · 0.45

Calls 2

valuesMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected