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

Method getPersonWithID

java/Chapter 10/Question10_2/Server.java:18–28  ·  view source on GitHub ↗
(int personID)

Source from the content-addressed store, hash-verified

16 }
17
18 public Person getPersonWithID(int personID) {
19 Integer machineID = personToMachineMap.get(personID);
20 if (machineID == null) {
21 return null;
22 }
23 Machine machine = getMachineWithId(machineID);
24 if (machine == null) {
25 return null;
26 }
27 return machine.getPersonWithID(personID);
28 }
29}

Callers

nothing calls this directly

Calls 3

getMachineWithIdMethod · 0.95
getPersonWithIDMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected