package com.google.android.libraries.places.internal; import com.huawei.hms.framework.common.ContainerUtils; import java.util.Map; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public final class zzagy implements Map.Entry, Comparable { final zzahe zza; private final Comparable zzb; private Object zzc; private static final boolean zzb(Object obj, Object obj2) { if (obj == null) { return obj2 == null; } return obj.equals(obj2); } @Override // java.lang.Comparable public final /* bridge */ /* synthetic */ int compareTo(Object obj) { return this.zzb.compareTo(((zzagy) obj).zzb); } @Override // java.util.Map.Entry public final boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof Map.Entry)) { return false; } Map.Entry entry = (Map.Entry) obj; return zzb(this.zzb, entry.getKey()) && zzb(this.zzc, entry.getValue()); } @Override // java.util.Map.Entry public final int hashCode() { Comparable comparable = this.zzb; int hashCode = comparable == null ? 0 : comparable.hashCode(); Object obj = this.zzc; return hashCode ^ (obj != null ? obj.hashCode() : 0); } @Override // java.util.Map.Entry public final Object setValue(Object obj) { this.zza.zzn(); Object obj2 = this.zzc; this.zzc = obj; return obj2; } public final String toString() { String valueOf = String.valueOf(this.zzb); String valueOf2 = String.valueOf(this.zzc); StringBuilder sb = new StringBuilder(); sb.append(valueOf); sb.append(ContainerUtils.KEY_VALUE_DELIMITER); sb.append(valueOf2); return sb.toString(); } public final Comparable zza() { return this.zzb; } @Override // java.util.Map.Entry public final Object getValue() { return this.zzc; } @Override // java.util.Map.Entry public final /* synthetic */ Object getKey() { return this.zzb; } /* JADX INFO: Access modifiers changed from: package-private */ public zzagy(zzahe zzaheVar, Comparable comparable, Object obj) { this.zza = zzaheVar; this.zzb = comparable; this.zzc = obj; } }