src/net/java/sip/communicator/impl/protocol/jabber/ServerStoredContactListJabberImpl.java
/**
         * Finds private messaging contact by its jabber id.
         * @param id the jabber id.
         * @return the contact or null if the contact is not found.
         */
Finds private messaging contact by its jabber id.
@param id the jabber id.
@return the contact or null if the contact is not found.
Finds private messaging contact by its jabber id . @param id the jabber id . @return the contact or null if the contact is not found .
private ContactJabberImpl findPrivateContactByRealId(Jid id)
        {
            ContactGroupJabberImpl volatileGroup
                = getNonPersistentGroup();
            if(volatileGroup == null)
                return null;
            Iterator<Contact> it = volatileGroup.contacts();
            while(it.hasNext())
            {
                Contact contact = it.next();
                if(contact.getPersistableAddress() == null)
                    continue;
                if(contact.getPersistableAddress().equals(
                    id.asBareJid().toString()))
                {
                    return (ContactJabberImpl) contact;
                }
            }
            return null;
        }
private ContactJabberImpl findPrivateContactByRealId ( Jid id ) { ContactGroupJabberImpl volatileGroup = getNonPersistentGroup ( ) ; if ( volatileGroup == null ) return null ; Iterator < Contact > it = volatileGroup . contacts ( ) ; while ( it . hasNext ( ) ) { Contact contact = it . next ( ) ; if ( contact . getPersistableAddress ( ) == null ) continue ; if ( contact . getPersistableAddress ( ) . equals ( id . asBareJid ( ) . toString ( ) ) ) { return ( ContactJabberImpl ) contact ; } } return null ; }
Finds private messaging contact by its jabber id.
Finds private messaging contact by its jabber id .