84 lines
2.4 KiB
Java
84 lines
2.4 KiB
Java
package com.google.android.gms.internal.measurement;
|
|
|
|
import com.huawei.hms.framework.common.ContainerUtils;
|
|
import java.util.Map;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class zzlu implements Map.Entry, Comparable<zzlu> {
|
|
final zzlx 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(zzlu zzluVar) {
|
|
return this.zzb.compareTo(zzluVar.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(String.valueOf(valueOf).length() + 1 + String.valueOf(valueOf2).length());
|
|
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 zzlu(zzlx zzlxVar, Comparable comparable, Object obj) {
|
|
this.zza = zzlxVar;
|
|
this.zzb = comparable;
|
|
this.zzc = obj;
|
|
}
|
|
}
|