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

Method sentAddRequest

java/Chapter 8/Question8_7/User.java:68–73  ·  view source on GitHub ↗
(AddRequest req)

Source from the content-addressed store, hash-verified

66 }
67
68 public void sentAddRequest(AddRequest req) {
69 int receiverId = req.getFromUser().getId();
70 if (!sentAddRequests.containsKey(receiverId)) {
71 sentAddRequests.put(receiverId, req);
72 }
73 }
74
75 public void removeAddRequest(AddRequest req) {
76 if (req.getToUser() == this) {

Callers 1

addUserMethod · 0.80

Calls 3

getFromUserMethod · 0.80
putMethod · 0.80
getIdMethod · 0.45

Tested by

no test coverage detected