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

Method userSignedOff

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

Source from the content-addressed store, hash-verified

49 }
50
51 public void userSignedOff(String accountName) {
52 User user = usersByAccountName.get(accountName);
53 if (user != null) {
54 user.setStatus(new UserStatus(UserStatusType.Offline, ""));
55 onlineUsers.remove(user.getId());
56 }
57 }
58}
59

Callers

nothing calls this directly

Calls 4

setStatusMethod · 0.95
getIdMethod · 0.95
getMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected