(@Nullable Object other)
| 289 | } |
| 290 | |
| 291 | @Override |
| 292 | public boolean equals(@Nullable Object other) { |
| 293 | if (this == other) { |
| 294 | return true; |
| 295 | } |
| 296 | if (other instanceof HostAndPort) { |
| 297 | HostAndPort that = (HostAndPort) other; |
| 298 | return Objects.equal(this.host, that.host) && this.port == that.port |
| 299 | && this.hasBracketlessColons == that.hasBracketlessColons; |
| 300 | } |
| 301 | return false; |
| 302 | } |
| 303 | |
| 304 | @Override |
| 305 | public int hashCode() { |