MCPcopy Index your code
hub / github.com/careercup/ctci / getInstance

Method getInstance

java/Chapter 8/Question8_2/CallHandler.java:55–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53
54 /* Get instance of singleton class. */
55 public static CallHandler getInstance() {
56 if (instance == null) {
57 instance = new CallHandler();
58 }
59 return instance;
60 }
61
62 /* Gets the first available employee who can handle this call. */
63 public Employee getHandlerForCall(Call call) {

Callers 3

escalateAndReassignMethod · 0.95
assignNewCallMethod · 0.95
mainMethod · 0.95

Calls

no outgoing calls

Tested by 1

mainMethod · 0.76