34 lines
862 B
Java
34 lines
862 B
Java
|
package io.grpc.inprocess;
|
||
|
|
||
|
import com.google.common.base.Preconditions;
|
||
|
import java.net.SocketAddress;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class InProcessSocketAddress extends SocketAddress {
|
||
|
private static final long serialVersionUID = -2803441206326023474L;
|
||
|
private final String name;
|
||
|
|
||
|
public InProcessSocketAddress(String str) {
|
||
|
this.name = (String) Preconditions.checkNotNull(str, "name");
|
||
|
}
|
||
|
|
||
|
public final int hashCode() {
|
||
|
return this.name.hashCode();
|
||
|
}
|
||
|
|
||
|
public final boolean equals(Object obj) {
|
||
|
if (obj instanceof InProcessSocketAddress) {
|
||
|
return this.name.equals(((InProcessSocketAddress) obj).name);
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public final String toString() {
|
||
|
return this.name;
|
||
|
}
|
||
|
|
||
|
public final String getName() {
|
||
|
return this.name;
|
||
|
}
|
||
|
}
|