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

Class Bell

innerclasses/GreenhouseControls.java:91–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 // An example of an action() that inserts a
90 // new one of itself into the event list:
91 public class Bell extends Event {
92 public Bell(long delayTime) {
93 super(delayTime);
94 }
95 @Override public void action() {
96 addEvent(new Bell(delayTime.toMillis()));
97 }
98 @Override public String toString() {
99 return "Bing!";
100 }
101 }
102 public class Restart extends Event {
103 private Event[] eventList;
104 public

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected