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

Method equals

output/java_guava/1.4.19/MediaType.java:1015–1027  ·  view source on GitHub ↗
(@Nullable Object obj)

Source from the content-addressed store, hash-verified

1013 }
1014
1015 @Override
1016 public boolean equals(@Nullable Object obj) {
1017 if (obj == this) {
1018 return true;
1019 } else if (obj instanceof MediaType) {
1020 MediaType that = (MediaType) obj;
1021 return this.type.equals(that.type) && this.subtype.equals(that.subtype)
1022 // compare parameters regardless of order
1023 && this.parametersAsMap().equals(that.parametersAsMap());
1024 } else {
1025 return false;
1026 }
1027 }
1028
1029 @Override
1030 public int hashCode() {

Callers

nothing calls this directly

Calls 2

parametersAsMapMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected