- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
59 lines
1.4 KiB
Java
59 lines
1.4 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.mediationsdk.impressionData.ImpressionDataListener;
|
|
import java.util.HashSet;
|
|
import java.util.List;
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class lj {
|
|
private static lj c;
|
|
private final HashSet<ImpressionDataListener> a = new HashSet<>();
|
|
private ConcurrentHashMap<String, List<String>> b = new ConcurrentHashMap<>();
|
|
|
|
public static synchronized lj b() {
|
|
lj ljVar;
|
|
synchronized (lj.class) {
|
|
try {
|
|
if (c == null) {
|
|
c = new lj();
|
|
}
|
|
ljVar = c;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
return ljVar;
|
|
}
|
|
|
|
public HashSet<ImpressionDataListener> a() {
|
|
return this.a;
|
|
}
|
|
|
|
public void a(ImpressionDataListener impressionDataListener) {
|
|
synchronized (this) {
|
|
this.a.add(impressionDataListener);
|
|
}
|
|
}
|
|
|
|
public void a(String str, List<String> list) {
|
|
this.b.put(str, list);
|
|
}
|
|
|
|
public void b(ImpressionDataListener impressionDataListener) {
|
|
synchronized (this) {
|
|
this.a.remove(impressionDataListener);
|
|
}
|
|
}
|
|
|
|
public ConcurrentHashMap<String, List<String>> c() {
|
|
return this.b;
|
|
}
|
|
|
|
public void d() {
|
|
synchronized (this) {
|
|
this.a.clear();
|
|
}
|
|
}
|
|
}
|