MCPcopy Create free account
hub / github.com/grpc/grpc-java / equals

Method equals

api/src/main/java/io/grpc/Metadata.java:797–808  ·  view source on GitHub ↗

Returns true if the two objects are both Keys, and their names match (case insensitive).

(Object o)

Source from the content-addressed store, hash-verified

795 * Returns true if the two objects are both Keys, and their names match (case insensitive).
796 */
797 @SuppressWarnings("EqualsGetClass")
798 @Override
799 public final boolean equals(Object o) {
800 if (this == o) {
801 return true;
802 }
803 if (o == null || getClass() != o.getClass()) {
804 return false;
805 }
806 Key<?> key = (Key<?>) o;
807 return name.equals(key.name);
808 }
809
810 @Override
811 public final int hashCode() {

Callers 3

removeMethod · 0.45
bytesEqualMethod · 0.45
validateNameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected