(final Jid j, final boolean compareResources)
| 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()) { |
no test coverage detected