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