what-the-bank/sources/io/grpc/internal/ServerCallInfoImpl.java

48 lines
1.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package io.grpc.internal;
import com.google.common.base.Objects;
import io.grpc.Attributes;
import io.grpc.MethodDescriptor;
import io.grpc.ServerStreamTracer;
/* loaded from: classes6.dex */
final class ServerCallInfoImpl<ReqT, RespT> extends ServerStreamTracer.ServerCallInfo<ReqT, RespT> {
private final Attributes attributes;
private final String authority;
private final MethodDescriptor<ReqT, RespT> methodDescriptor;
/* JADX INFO: Access modifiers changed from: package-private */
public ServerCallInfoImpl(MethodDescriptor<ReqT, RespT> methodDescriptor, Attributes attributes, String str) {
this.methodDescriptor = methodDescriptor;
this.attributes = attributes;
this.authority = str;
}
public final boolean equals(Object obj) {
if (!(obj instanceof ServerCallInfoImpl)) {
return false;
}
ServerCallInfoImpl serverCallInfoImpl = (ServerCallInfoImpl) obj;
return Objects.equal(this.methodDescriptor, serverCallInfoImpl.methodDescriptor) && Objects.equal(this.attributes, serverCallInfoImpl.attributes) && Objects.equal(this.authority, serverCallInfoImpl.authority);
}
public final int hashCode() {
return Objects.hashCode(this.methodDescriptor, this.attributes, this.authority);
}
@Override // io.grpc.ServerStreamTracer.ServerCallInfo
public final MethodDescriptor<ReqT, RespT> getMethodDescriptor() {
return this.methodDescriptor;
}
@Override // io.grpc.ServerStreamTracer.ServerCallInfo
public final String getAuthority() {
return this.authority;
}
@Override // io.grpc.ServerStreamTracer.ServerCallInfo
public final Attributes getAttributes() {
return this.attributes;
}
}