- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
42 lines
1.1 KiB
Java
42 lines
1.1 KiB
Java
package com.fyber.inneractive.sdk.config.global;
|
|
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
import org.json.JSONArray;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class i implements d {
|
|
public final HashSet a = new HashSet();
|
|
public final boolean b;
|
|
|
|
public i(JSONArray jSONArray, boolean z) {
|
|
if (jSONArray != null) {
|
|
for (int i = 0; i < jSONArray.length(); i++) {
|
|
long optLong = jSONArray.optLong(i);
|
|
if (optLong != 0) {
|
|
this.a.add(Long.valueOf(optLong));
|
|
}
|
|
}
|
|
}
|
|
this.b = z;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.config.global.d
|
|
public final boolean a(e eVar) {
|
|
if (this.a.isEmpty() || eVar.b == null) {
|
|
return false;
|
|
}
|
|
Iterator it = this.a.iterator();
|
|
while (it.hasNext()) {
|
|
if (((Long) it.next()).equals(eVar.b)) {
|
|
return !this.b;
|
|
}
|
|
}
|
|
return this.b;
|
|
}
|
|
|
|
public final String toString() {
|
|
return String.format("%s - %s include: %b", "pub_id", this.a, Boolean.valueOf(this.b));
|
|
}
|
|
}
|