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

Method userSignedOn

java/Chapter 8/Question8_7/UserManager.java:43–49  ·  view source on GitHub ↗
(String accountName)

Source from the content-addressed store, hash-verified

41 }
42
43 public void userSignedOn(String accountName) {
44 User user = usersByAccountName.get(accountName);
45 if (user != null) {
46 user.setStatus(new UserStatus(UserStatusType.Available, ""));
47 onlineUsers.put(user.getId(), user);
48 }
49 }
50
51 public void userSignedOff(String accountName) {
52 User user = usersByAccountName.get(accountName);

Callers

nothing calls this directly

Calls 4

setStatusMethod · 0.95
getIdMethod · 0.95
putMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected