package com.google.android.gms.measurement.internal; import android.content.SharedPreferences; import androidx.annotation.WorkerThread; import com.google.android.gms.common.internal.Preconditions; /* loaded from: classes3.dex */ public final class zzgm { private final String zza; private final long zzb; private boolean zzc; private long zzd; private final /* synthetic */ zzgl zze; @WorkerThread public final long zza() { if (!this.zzc) { this.zzc = true; this.zzd = this.zze.zzg().getLong(this.zza, this.zzb); } return this.zzd; } public zzgm(zzgl zzglVar, String str, long j) { this.zze = zzglVar; Preconditions.checkNotEmpty(str); this.zza = str; this.zzb = j; } @WorkerThread public final void zza(long j) { SharedPreferences.Editor edit = this.zze.zzg().edit(); edit.putLong(this.zza, j); edit.apply(); this.zzd = j; } }