MCPcopy
hub / github.com/careercup/ctci / assignNewCall

Method assignNewCall

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

Source from the content-addressed store, hash-verified

49
50 /* Assign a new call to an employee, if the employee is free. */
51 public boolean assignNewCall() {
52 if (!isFree()) {
53 return false;
54 }
55 return CallHandler.getInstance().assignCall(this);
56 }
57
58 /* Returns whether or not the employee is free. */
59 public boolean isFree() {

Callers 2

callCompletedMethod · 0.95
escalateAndReassignMethod · 0.95

Calls 3

isFreeMethod · 0.95
getInstanceMethod · 0.95
assignCallMethod · 0.80

Tested by

no test coverage detected