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

Method equals

api/src/main/java/io/grpc/LoadBalancer.java:802–811  ·  view source on GitHub ↗

Returns true if the Subchannel, Status, and ClientStreamTracer.Factory all match.

(Object other)

Source from the content-addressed store, hash-verified

800 * {@link ClientStreamTracer.Factory} all match.
801 */
802 @Override
803 public boolean equals(Object other) {
804 if (!(other instanceof PickResult)) {
805 return false;
806 }
807 PickResult that = (PickResult) other;
808 return Objects.equal(subchannel, that.subchannel) && Objects.equal(status, that.status)
809 && Objects.equal(streamTracerFactory, that.streamTracerFactory)
810 && drop == that.drop;
811 }
812 }
813
814 /**

Callers 3

getOptionMethod · 0.45
addOptionMethod · 0.45
equalsMethod · 0.45

Calls 1

equalMethod · 0.45

Tested by

no test coverage detected