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

Method addConversation

java/Chapter 8/Question8_7/User.java:87–90  ·  view source on GitHub ↗
(PrivateChat conversation)

Source from the content-addressed store, hash-verified

85 }
86
87 public void addConversation(PrivateChat conversation) {
88 User otherUser = conversation.getOtherParticipant(this);
89 privateChats.put(otherUser.getId(), conversation);
90 }
91
92 public void addConversation(GroupChat conversation) {
93 groupChats.add(conversation);

Callers

nothing calls this directly

Calls 4

getIdMethod · 0.95
getOtherParticipantMethod · 0.80
putMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected