public boolean isValidContact(String contact) throws RcsPermissionDeniedException {
  if (TextUtils.isEmpty(contact)) {
    return false;
  }
  String strippedContact=stripSeparators(contact);
  if (TextUtils.isEmpty(strippedContact)) {
    return false;
  }
  if (strippedContact.startsWith(COUNTRY_CODE_PREFIX)) {
    return true;
  }
  if (strippedContact.startsWith(MSISDN_PREFIX_INTERNATIONAL)) {
    return true;
  }
  if (mCountryCode == null) {
    tryToDetermineAndCacheCountryAndAreaCodes();
  }
  return TextUtils.isEmpty(mCountryAreaCode) || strippedContact.startsWith(mCountryAreaCode);
}

public boolean isValidContact ( String contact ) throws RcsPermissionDeniedException { if ( TextUtils . isEmpty ( contact ) ) { return false ; } String strippedContact = stripSeparators ( contact ) ; if ( TextUtils . isEmpty ( strippedContact ) ) { return false ; } if ( strippedContact . startsWith ( COUNTRY_CODE_PREFIX ) ) { return true ; } if ( strippedContact . startsWith ( MSISDN_PREFIX_INTERNATIONAL ) ) { return true ; } if ( mCountryCode == null ) { tryToDetermineAndCacheCountryAndAreaCodes ( ) ; } return TextUtils . isEmpty ( mCountryAreaCode ) || strippedContact . startsWith ( mCountryAreaCode ) ; }
checks the validity of a contact number .
