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

Method next

concurrent/Pizza.java:23–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 private final int id;
22 public Pizza(int id) { this.id = id; }
23 public Pizza next() {
24 step = step.forward();
25 System.out.println("Pizza " + id + ": " + step);
26 return this;
27 }
28 public Pizza next(Step previousStep) {
29 if(!step.equals(previousStep))
30 throw new IllegalStateException("Expected " +

Callers 8

mainMethod · 0.95
rollMethod · 0.95
sauceMethod · 0.95
cheeseMethod · 0.95
toppingsMethod · 0.95
bakeMethod · 0.95
sliceMethod · 0.95
boxMethod · 0.95

Calls 2

forwardMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected