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

Method step

concurrent/Machina.java:10–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 public enum State {
9 START, ONE, TWO, THREE, END;
10 State step() {
11 if(equals(END)) return END;
12 return values()[ordinal() + 1];
13 }
14 }
15 private State state = State.START;
16 private final int id;

Callers 1

workMethod · 0.80

Calls 2

valuesMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected