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

Method isValid

output/java_guava/1.4.17/InternetDomainName.java:469–476  ·  view source on GitHub ↗

Indicates whether the argument is a syntactically valid domain name using lenient validation. Specifically, validation against RFC 3490 ("Internationalizing Domain Names in Applications") is skipped. The following two code snippets are equivalent

(String name)

Source from the content-addressed store, hash-verified

467
468
469 public static boolean isValid(String name) {
470 try {
471 from(name);
472 return true;
473 } catch (IllegalArgumentException e) {
474 return false;
475 }
476 }
477
478 /**
479 * Does the domain name match one of the "wildcard" patterns (e.g. {@code "*.ar"})?

Callers

nothing calls this directly

Calls 1

fromMethod · 0.95

Tested by

no test coverage detected