what-the-bank/sources/com/google/android/gms/internal/measurement/zzid.java

53 lines
1.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.measurement;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
/* loaded from: classes.dex */
final class zzid<T> implements zzib<T> {
volatile zzib<T> zza;
volatile boolean zzb;
T zzc;
/* JADX INFO: Access modifiers changed from: package-private */
public zzid(zzib<T> zzibVar) {
zzibVar.getClass();
this.zza = zzibVar;
}
public final String toString() {
Object obj = this.zza;
if (obj == null) {
String valueOf = String.valueOf(this.zzc);
StringBuilder sb = new StringBuilder(String.valueOf(valueOf).length() + 25);
sb.append("<supplier that returned ");
sb.append(valueOf);
sb.append(UrlTreeKt.configurablePathSegmentSuffix);
obj = sb.toString();
}
String obj2 = obj.toString();
StringBuilder sb2 = new StringBuilder(obj2.length() + 19);
sb2.append("Suppliers.memoize(");
sb2.append(obj2);
sb2.append(")");
return sb2.toString();
}
@Override // com.google.android.gms.internal.measurement.zzib
public final T zza() {
if (!this.zzb) {
synchronized (this) {
if (!this.zzb) {
zzib<T> zzibVar = this.zza;
zzibVar.getClass();
T zza = zzibVar.zza();
this.zzc = zza;
this.zzb = true;
this.zza = null;
return zza;
}
}
}
return this.zzc;
}
}