Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
work
Method · 0.80
Calls
2
values
Method · 0.80
equals
Method · 0.45
Tested by
no test coverage detected