public final class DomainNameUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isValidDomainAddress(String domain)
Checks validity of a domain name.
|
static boolean |
isValidEmailDomainAddress(String domain)
Checks the validity of the domain name used in an email.
|
public static boolean isValidEmailDomainAddress(String domain)
domain
- domain to check for validitytrue
if the provided string is a valid domain, false
otherwisepublic static boolean isValidDomainAddress(String domain)
domain
- the domain to check for validitytrue
if the provided string is a valid domain, false
otherwise