src/net/java/sip/communicator/impl/protocol/jabber/OperationSetCusaxUtilsJabberImpl.java
/**
     * Checks if the given <tt>detailAddress</tt> exists in the given
     * <tt>contact</tt> details.
     *
     * @param contact the <tt>Contact</tt>, which details to check
     * @param detailAddress the detail address we're looking for
     * @return <tt>true</tt> if the given <tt>detailAdress</tt> exists in the
     * details of the given <tt>contact</tt>
     */
Checks if the given detailAddress exists in the given
contact details.

@param contact the Contact, which details to check
@param detailAddress the detail address we're looking for
@return true if the given detailAdress exists in the
details of the given contact
Checks if the given detailAddress exists in the given contact details . @param contact the Contact which details to check @param detailAddress the detail address we ' re looking for @return true if the given detailAdress exists in the details of the given contact
public boolean doesDetailBelong(Contact contact, String detailAddress)
    {
        List<String> contactPhones
            = ContactPhoneUtil.getContactAdditionalPhones(
                contact, null, false, false);
        if (contactPhones == null || contactPhones.size() <= 0)
            return false;
        Iterator<String> phonesIter = contactPhones.iterator();
        while (phonesIter.hasNext())
        {
            String phone = phonesIter.next();
            String normalizedPhone = JabberActivator.getPhoneNumberI18nService()
                .normalize(phone);
            if (phone.equals(detailAddress)
                || normalizedPhone.equals(detailAddress)
                || detailAddress.contains(phone)
                || detailAddress.contains(normalizedPhone))
                return true;
        }
        return false;
    }
public boolean doesDetailBelong ( Contact contact , String detailAddress ) { List < String > contactPhones = ContactPhoneUtil . getContactAdditionalPhones ( contact , null , false , false ) ; if ( contactPhones == null || contactPhones . size ( ) <= 0 ) return false ; Iterator < String > phonesIter = contactPhones . iterator ( ) ; while ( phonesIter . hasNext ( ) ) { String phone = phonesIter . next ( ) ; String normalizedPhone = JabberActivator . getPhoneNumberI18nService ( ) . normalize ( phone ) ; if ( phone . equals ( detailAddress ) || normalizedPhone . equals ( detailAddress ) || detailAddress . contains ( phone ) || detailAddress . contains ( normalizedPhone ) ) return true ; } return false ; }
Checks if the given <tt>detailAddress</tt> exists in the given
 <tt>contact</tt> details.
Checks if the given <tt > detailAddress< / tt > exists in the given <tt > contact< / tt > details .