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

Method equals

output/java_guava/1.4.18/HostAndPort.java:288–299  ·  view source on GitHub ↗
(@Nullable Object other)

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

equalMethod · 0.95

Tested by

no test coverage detected