what-the-bank/sources/com/google/android/gms/common/internal/ClientIdentity.java

52 lines
1.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.common.internal;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
/* loaded from: classes.dex */
public class ClientIdentity extends AbstractSafeParcelable {
public static final Parcelable.Creator<ClientIdentity> CREATOR = new zaa();
public final String packageName;
public final int uid;
public ClientIdentity(int i, String str) {
this.uid = i;
this.packageName = str;
}
public final boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ClientIdentity)) {
return false;
}
ClientIdentity clientIdentity = (ClientIdentity) obj;
return clientIdentity.uid == this.uid && Objects.equal(clientIdentity.packageName, this.packageName);
}
public final String toString() {
int i = this.uid;
String str = this.packageName;
StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 12);
sb.append(i);
sb.append(":");
sb.append(str);
return sb.toString();
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, this.uid);
SafeParcelWriter.writeString(parcel, 2, this.packageName, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
public final int hashCode() {
return this.uid;
}
}