Determines whether {@code specifier} represents a valid {@link HostSpecifier} as described in the documentation for {@link #fromValid(String)}.
(String specifier)
| 130 | * the documentation for {@link #fromValid(String)}. |
| 131 | */ |
| 132 | public static boolean isValid(String specifier) { |
| 133 | try { |
| 134 | HostSpecifier unused = fromValid(specifier); |
| 135 | return true; |
| 136 | } catch (IllegalArgumentException e) { |
| 137 | return false; |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | @Override |
| 142 | public boolean equals(@Nullable Object other) { |