MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / findContact

Method findContact

src/main/java/Client/Roster.java:772–783  ·  view source on GitHub ↗
(final Jid j, final boolean compareResources)

Source from the content-addressed store, hash-verified

770 }
771
772 public final Contact findContact(final Jid j, final boolean compareResources) {
773 synchronized (hContacts) {
774 int j2 = hContacts.size();
775 for (int i = 0; i < j2; i++) {
776 Contact c = (Contact) hContacts.elementAt(i);
777 if (c.jid.equals(j, compareResources)) {
778 return c;
779 }
780 }
781 }
782 return null;
783 }
784
785 public Contact getFirstContactWithNewHighlite(Contact contact) {
786 if (hContacts.isEmpty()) {

Callers 5

updateContactMethod · 0.95
findMucContactMethod · 0.95
getContactMethod · 0.95
belongsToTransportMethod · 0.80
blockArrivedMethod · 0.80

Calls 2

sizeMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected