package com.ironsource; import com.ironsource.mediationsdk.model.InterstitialPlacement; import java.util.ArrayList; import java.util.Iterator; import java.util.concurrent.TimeUnit; /* loaded from: classes2.dex */ public class hi { private static final int o = 0; private ArrayList a; private a4 b; private int c; private boolean d; private int e; private int f; private h5 g; private boolean h; private boolean i; private long j; private boolean k; private boolean l; private boolean m; private InterstitialPlacement n; public hi() { this.a = new ArrayList<>(); this.b = new a4(); this.g = new h5(); } public hi(int i, boolean z, int i2, a4 a4Var, h5 h5Var, int i3, boolean z2, boolean z3, long j, boolean z4, boolean z5, boolean z6) { this.a = new ArrayList<>(); this.c = i; this.d = z; this.e = i2; this.b = a4Var; this.g = h5Var; this.k = z4; this.l = z5; this.f = i3; this.h = z2; this.i = z3; this.j = j; this.m = z6; } public InterstitialPlacement a() { Iterator it = this.a.iterator(); while (it.hasNext()) { InterstitialPlacement next = it.next(); if (next.isDefault()) { return next; } } return this.n; } public InterstitialPlacement a(String str) { Iterator it = this.a.iterator(); while (it.hasNext()) { InterstitialPlacement next = it.next(); if (next.getPlacementName().equals(str)) { return next; } } return null; } public void a(InterstitialPlacement interstitialPlacement) { if (interstitialPlacement != null) { this.a.add(interstitialPlacement); if (this.n == null || interstitialPlacement.isPlacementId(0)) { this.n = interstitialPlacement; } } } public int b() { return this.f; } public int c() { return this.c; } public int d() { return this.e; } public long e() { return TimeUnit.SECONDS.toMillis(this.e); } public boolean f() { return this.d; } public h5 g() { return this.g; } public boolean h() { return this.i; } public long i() { return this.j; } public a4 j() { return this.b; } public boolean k() { return this.h; } public boolean l() { return this.k; } public boolean m() { return this.m; } public boolean n() { return this.l; } public String toString() { return "InterstitialConfigurations{parallelLoad=" + this.c + ", bidderExclusive=" + this.d + '}'; } }