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

Method isValid

output/java_guava/1.4.16/HostSpecifier.java:131–138  ·  view source on GitHub ↗

Determines whether specifier represents a valid HostSpecifier as described in the documentation for #fromValid(String).

(String specifier)

Source from the content-addressed store, hash-verified

129
130
131 public static boolean isValid(String specifier) {
132 try {
133 fromValid(specifier);
134 return true;
135 } catch (IllegalArgumentException e) {
136 return false;
137 }
138 }
139
140 @Override
141 public boolean equals(@Nullable Object other) {

Callers

nothing calls this directly

Calls 1

fromValidMethod · 0.95

Tested by

no test coverage detected