/** * Indicates if the the address's domain is in the list of domains. The domain check is case insensitive. * @param domains The domain to check. * @return True if the address's domain is in the list of provided domains. False otherwise. */ public boolean isInDomain(Collection<String> domains) { for (String domain : domains) if (domainEquals(domain)) return true; return false; }