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

Method getMachineIDForUser

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

Source from the content-addressed store, hash-verified

11 }
12
13 public int getMachineIDForUser(int personID) {
14 Integer machineID = personToMachineMap.get(personID);
15 return machineID == null ? -1 : machineID;
16 }
17
18 public Person getPersonWithID(int personID) {
19 Integer machineID = personToMachineMap.get(personID);

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected