81 lines
2.3 KiB
Java
81 lines
2.3 KiB
Java
package com.google.android.gms.internal.measurement;
|
|
|
|
import java.util.Map;
|
|
|
|
/* JADX INFO: Add missing generic type declarations: [V, K] */
|
|
/* JADX WARN: Incorrect field signature: TK; */
|
|
/* loaded from: classes.dex */
|
|
final class zzwv<K, V> implements Comparable<zzwv>, Map.Entry<K, V> {
|
|
private final Comparable a;
|
|
private V b;
|
|
private final /* synthetic */ zzwo c;
|
|
|
|
zzwv(zzwo zzwoVar, Map.Entry<K, V> entry) {
|
|
this(zzwoVar, (Comparable) entry.getKey(), entry.getValue());
|
|
}
|
|
|
|
private static boolean a(Object obj, Object obj2) {
|
|
return obj == null ? obj2 == null : obj.equals(obj2);
|
|
}
|
|
|
|
@Override // java.lang.Comparable
|
|
public final /* synthetic */ int compareTo(zzwv zzwvVar) {
|
|
return ((Comparable) getKey()).compareTo((Comparable) zzwvVar.getKey());
|
|
}
|
|
|
|
@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 a(this.a, entry.getKey()) && a(this.b, entry.getValue());
|
|
}
|
|
|
|
@Override // java.util.Map.Entry
|
|
public final /* synthetic */ Object getKey() {
|
|
return this.a;
|
|
}
|
|
|
|
@Override // java.util.Map.Entry
|
|
public final V getValue() {
|
|
return this.b;
|
|
}
|
|
|
|
@Override // java.util.Map.Entry
|
|
public final int hashCode() {
|
|
Comparable comparable = this.a;
|
|
int hashCode = comparable == null ? 0 : comparable.hashCode();
|
|
V v = this.b;
|
|
return hashCode ^ (v != null ? v.hashCode() : 0);
|
|
}
|
|
|
|
@Override // java.util.Map.Entry
|
|
public final V setValue(V v) {
|
|
this.c.f();
|
|
V v2 = this.b;
|
|
this.b = v;
|
|
return v2;
|
|
}
|
|
|
|
public final String toString() {
|
|
String valueOf = String.valueOf(this.a);
|
|
String valueOf2 = String.valueOf(this.b);
|
|
StringBuilder sb = new StringBuilder(String.valueOf(valueOf).length() + 1 + String.valueOf(valueOf2).length());
|
|
sb.append(valueOf);
|
|
sb.append("=");
|
|
sb.append(valueOf2);
|
|
return sb.toString();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
zzwv(zzwo zzwoVar, K k, V v) {
|
|
this.c = zzwoVar;
|
|
this.a = k;
|
|
this.b = v;
|
|
}
|
|
}
|