Determines whether specifier represents a valid HostSpecifier as described in the documentation for #fromValid(String).
(String specifier)
| 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) { |