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

Method equals

core/src/main/java/io/grpc/internal/HedgingPolicy.java:45–57  ·  view source on GitHub ↗
(Object other)

Source from the content-addressed store, hash-verified

43 }
44
45 @Override
46 public boolean equals(Object other) {
47 if (this == other) {
48 return true;
49 }
50 if (other == null || getClass() != other.getClass()) {
51 return false;
52 }
53 HedgingPolicy that = (HedgingPolicy) other;
54 return maxAttempts == that.maxAttempts
55 && hedgingDelayNanos == that.hedgingDelayNanos
56 && Objects.equal(nonFatalStatusCodes, that.nonFatalStatusCodes);
57 }
58
59 @Override
60 public int hashCode() {

Callers

nothing calls this directly

Calls 1

equalMethod · 0.45

Tested by

no test coverage detected