package com.vungle.warren; /* loaded from: classes2.dex */ public class k { /* renamed from: a, reason: collision with root package name */ @a5.c("enabled") private final boolean f8264a; /* renamed from: b, reason: collision with root package name */ @a5.c("clear_shared_cache_timestamp") private final long f8265b; private k(boolean z10, long j10) { this.f8264a = z10; this.f8265b = j10; } static k a(String str) { if (str == null) { return null; } try { return b((z4.k) new z4.f().b().i(str, z4.k.class)); } catch (z4.o unused) { return null; } } public static k b(z4.k kVar) { boolean z10; if (!com.vungle.warren.model.m.e(kVar, "clever_cache")) { return null; } z4.k w10 = kVar.w("clever_cache"); long j10 = -1; try { if (w10.x("clear_shared_cache_timestamp")) { j10 = w10.u("clear_shared_cache_timestamp").i(); } } catch (NumberFormatException unused) { } if (w10.x("enabled")) { z4.h u10 = w10.u("enabled"); if (u10.n() && "false".equalsIgnoreCase(u10.j())) { z10 = false; return new k(z10, j10); } } z10 = true; return new k(z10, j10); } public long c() { return this.f8265b; } public boolean d() { return this.f8264a; } public String e() { z4.k kVar = new z4.k(); kVar.o("clever_cache", new z4.f().b().z(this)); return kVar.toString(); } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } k kVar = (k) obj; return this.f8264a == kVar.f8264a && this.f8265b == kVar.f8265b; } public int hashCode() { int i10 = (this.f8264a ? 1 : 0) * 31; long j10 = this.f8265b; return i10 + ((int) (j10 ^ (j10 >>> 32))); } }