what-the-bank/sources/o/AbstractC15317gnH.java

185 lines
6.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.Vector;
import o.grK;
/* renamed from: o.gnH, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public abstract class AbstractC15317gnH extends AbstractC15315gnE implements InterfaceC15464grI<InterfaceC15342gnr> {
protected Vector e;
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC15315gnE
public abstract void c(gnG gng) throws IOException;
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC15315gnE
public final boolean d() {
return true;
}
public static AbstractC15317gnH a(Object obj) {
while (obj != null && !(obj instanceof AbstractC15317gnH)) {
if (obj instanceof InterfaceC15319gnM) {
obj = ((InterfaceC15319gnM) obj).i();
} else {
if (obj instanceof byte[]) {
try {
return a(b((byte[]) obj));
} catch (IOException e) {
StringBuilder sb = new StringBuilder("failed to construct sequence from byte[]: ");
sb.append(e.getMessage());
throw new IllegalArgumentException(sb.toString());
}
}
if (obj instanceof InterfaceC15342gnr) {
AbstractC15315gnE i = ((InterfaceC15342gnr) obj).i();
if (i instanceof AbstractC15317gnH) {
return (AbstractC15317gnH) i;
}
}
StringBuilder sb2 = new StringBuilder("unknown object in getInstance: ");
sb2.append(obj.getClass().getName());
throw new IllegalArgumentException(sb2.toString());
}
}
return (AbstractC15317gnH) obj;
}
/* JADX INFO: Access modifiers changed from: protected */
public AbstractC15317gnH() {
this.e = new Vector();
}
/* JADX INFO: Access modifiers changed from: protected */
public AbstractC15317gnH(InterfaceC15342gnr interfaceC15342gnr) {
Vector vector = new Vector();
this.e = vector;
vector.addElement(interfaceC15342gnr);
}
/* JADX INFO: Access modifiers changed from: protected */
public AbstractC15317gnH(C15343gns c15343gns) {
this.e = new Vector();
for (int i = 0; i != c15343gns.a.size(); i++) {
this.e.addElement((InterfaceC15342gnr) c15343gns.a.elementAt(i));
}
}
/* JADX INFO: Access modifiers changed from: protected */
public AbstractC15317gnH(InterfaceC15342gnr[] interfaceC15342gnrArr) {
this.e = new Vector();
for (int i = 0; i != interfaceC15342gnrArr.length; i++) {
this.e.addElement(interfaceC15342gnrArr[i]);
}
}
public final InterfaceC15342gnr[] a() {
InterfaceC15342gnr[] interfaceC15342gnrArr = new InterfaceC15342gnr[e()];
for (int i = 0; i != e(); i++) {
interfaceC15342gnrArr[i] = d(i);
}
return interfaceC15342gnrArr;
}
public Enumeration b() {
return this.e.elements();
}
public InterfaceC15342gnr d(int i) {
return (InterfaceC15342gnr) this.e.elementAt(i);
}
public int e() {
return this.e.size();
}
@Override // o.AbstractC15346gnv
public int hashCode() {
Enumeration b = b();
int e = e();
while (b.hasMoreElements()) {
e = (e * 17) ^ ((InterfaceC15342gnr) b.nextElement()).hashCode();
}
return e;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC15315gnE
protected final boolean e(AbstractC15315gnE abstractC15315gnE) {
if (!(abstractC15315gnE instanceof AbstractC15317gnH)) {
return false;
}
AbstractC15317gnH abstractC15317gnH = (AbstractC15317gnH) abstractC15315gnE;
if (e() != abstractC15317gnH.e()) {
return false;
}
Enumeration b = b();
Enumeration b2 = abstractC15317gnH.b();
while (b.hasMoreElements()) {
InterfaceC15342gnr interfaceC15342gnr = (InterfaceC15342gnr) b.nextElement();
InterfaceC15342gnr interfaceC15342gnr2 = (InterfaceC15342gnr) b2.nextElement();
AbstractC15315gnE i = interfaceC15342gnr.i();
AbstractC15315gnE i2 = interfaceC15342gnr2.i();
if (i != i2 && !i.equals(i2)) {
return false;
}
}
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC15315gnE
public AbstractC15315gnE h() {
C15385goy c15385goy = new C15385goy();
c15385goy.e = this.e;
return c15385goy;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC15315gnE
public AbstractC15315gnE f() {
goL gol = new goL();
gol.e = this.e;
return gol;
}
public String toString() {
return this.e.toString();
}
@Override // java.lang.Iterable
public Iterator<InterfaceC15342gnr> iterator() {
return new grK.RVV(a());
}
public static AbstractC15317gnH b(AbstractC15321gnP abstractC15321gnP, boolean z) {
if (z) {
if (!abstractC15321gnP.a) {
throw new IllegalArgumentException("object implicit - explicit expected.");
}
InterfaceC15342gnr interfaceC15342gnr = abstractC15321gnP.d;
return a((interfaceC15342gnr != null ? interfaceC15342gnr.i() : null).i());
}
if (abstractC15321gnP.a) {
if (abstractC15321gnP instanceof C15361goa) {
InterfaceC15342gnr interfaceC15342gnr2 = abstractC15321gnP.d;
return new gnX(interfaceC15342gnr2 != null ? interfaceC15342gnr2.i() : null);
}
InterfaceC15342gnr interfaceC15342gnr3 = abstractC15321gnP.d;
return new goL(interfaceC15342gnr3 != null ? interfaceC15342gnr3.i() : null);
}
InterfaceC15342gnr interfaceC15342gnr4 = abstractC15321gnP.d;
if ((interfaceC15342gnr4 != null ? interfaceC15342gnr4.i() : null) instanceof AbstractC15317gnH) {
InterfaceC15342gnr interfaceC15342gnr5 = abstractC15321gnP.d;
return (AbstractC15317gnH) (interfaceC15342gnr5 != null ? interfaceC15342gnr5.i() : null);
}
StringBuilder sb = new StringBuilder("unknown object in getInstance: ");
sb.append(abstractC15321gnP.getClass().getName());
throw new IllegalArgumentException(sb.toString());
}
}