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

Method escalateAndReassign

java/Chapter 8/Question8_2/Employee.java:36–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 * to the employee.
35 */
36 public void escalateAndReassign() {
37 if (currentCall != null) {
38 /* escalate call */
39 currentCall.incrementRank();
40 CallHandler.getInstance().dispatchCall(currentCall);
41
42 /* free the employee */
43 currentCall = null;
44 }
45
46 /* assign a new call */
47 assignNewCall();
48 }
49
50 /* Assign a new call to an employee, if the employee is free. */
51 public boolean assignNewCall() {

Callers

nothing calls this directly

Calls 4

getInstanceMethod · 0.95
assignNewCallMethod · 0.95
incrementRankMethod · 0.80
dispatchCallMethod · 0.80

Tested by

no test coverage detected