MCPcopy Create free account
hub / github.com/antlr/codebuff / from

Method from

output/java_guava/1.4.16/InternetDomainName.java:188–190  ·  view source on GitHub ↗

Returns an instance of InternetDomainName after lenient validation. Specifically, validation against RFC 3490 ("Internationalizing Domain Names in Applications") is skipped, while validation against <a href="http://www.ietf.org/rfc/rfc1035.tx

(String domain)

Source from the content-addressed store, hash-verified

186
187
188 public static InternetDomainName from(String domain) {
189 return new InternetDomainName(checkNotNull(domain));
190 }
191
192 /**
193 * Validation method used by {@from} to ensure that the domain name is syntactically valid

Callers 4

fromValidMethod · 0.95
ancestorMethod · 0.95
childMethod · 0.95
isValidMethod · 0.95

Calls 1

checkNotNullMethod · 0.45

Tested by

no test coverage detected