package com.ironsource; import java.util.HashMap; import kotlin.jvm.internal.Intrinsics; /* loaded from: classes2.dex */ public final class i0 { public static final i0 a = new i0(); private static final HashMap b = new HashMap<>(); private i0() { } public final HashMap a() { return b; } public final boolean a(String instance) { Intrinsics.checkNotNullParameter(instance, "instance"); HashMap hashMap = b; if (hashMap.get(instance) == null) { return false; } hashMap.remove(instance); return true; } public final boolean a(String instance, long j) { Intrinsics.checkNotNullParameter(instance, "instance"); if (instance.length() == 0) { return false; } HashMap hashMap = b; if (hashMap.containsKey(instance)) { return false; } hashMap.put(instance, Long.valueOf(j)); return true; } public final long b(String instance) { Intrinsics.checkNotNullParameter(instance, "instance"); Long l = b.get(instance); if (l != null) { return System.currentTimeMillis() - l.longValue(); } return -1L; } public final long c(String instance) { Intrinsics.checkNotNullParameter(instance, "instance"); Long l = b.get(instance); if (l != null) { return l.longValue(); } return -1L; } }