178 lines
5.4 KiB
Java
178 lines
5.4 KiB
Java
package o;
|
|
|
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
|
import com.huawei.hms.framework.common.ContainerUtils;
|
|
import java.util.Hashtable;
|
|
import java.util.Vector;
|
|
|
|
/* loaded from: classes6.dex */
|
|
public class gmO extends gmF implements gmM, InterfaceC15276gmJ {
|
|
public Vector b;
|
|
String c;
|
|
private Object d;
|
|
String e;
|
|
|
|
public gmO() {
|
|
this("", "");
|
|
}
|
|
|
|
public gmO(String str, String str2) {
|
|
this.b = new Vector();
|
|
this.c = str;
|
|
this.e = str2;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
int size;
|
|
int i;
|
|
if (!(obj instanceof gmO)) {
|
|
return false;
|
|
}
|
|
gmO gmo = (gmO) obj;
|
|
if (!this.e.equals(gmo.e) || !this.c.equals(gmo.c) || (size = this.b.size()) != gmo.b.size()) {
|
|
return false;
|
|
}
|
|
for (0; i < size; i + 1) {
|
|
Object elementAt = this.b.elementAt(i);
|
|
if (i < gmo.getPropertyCount()) {
|
|
Object elementAt2 = gmo.b.elementAt(i);
|
|
if ((elementAt instanceof C15281gmQ) && (elementAt2 instanceof C15281gmQ)) {
|
|
C15281gmQ c15281gmQ = (C15281gmQ) elementAt;
|
|
C15281gmQ c15281gmQ2 = (C15281gmQ) elementAt2;
|
|
i = (c15281gmQ.m.equals(c15281gmQ2.m) && c15281gmQ.c().equals(c15281gmQ2.c())) ? i + 1 : 0;
|
|
} else if ((elementAt instanceof gmO) && (elementAt2 instanceof gmO) && ((gmO) elementAt).equals((gmO) elementAt2)) {
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
return c((gmF) gmo);
|
|
}
|
|
|
|
@Override // o.InterfaceC15276gmJ
|
|
public Object getProperty(int i) {
|
|
Object elementAt = this.b.elementAt(i);
|
|
if (elementAt instanceof C15281gmQ) {
|
|
return ((C15281gmQ) elementAt).c();
|
|
}
|
|
return (gmO) elementAt;
|
|
}
|
|
|
|
@Override // o.InterfaceC15276gmJ
|
|
public int getPropertyCount() {
|
|
return this.b.size();
|
|
}
|
|
|
|
@Override // o.InterfaceC15276gmJ
|
|
public void getPropertyInfo(int i, Hashtable hashtable, C15281gmQ c15281gmQ) {
|
|
a(i, c15281gmQ);
|
|
}
|
|
|
|
public final void a(int i, C15281gmQ c15281gmQ) {
|
|
Object elementAt = this.b.elementAt(i);
|
|
if (elementAt instanceof C15281gmQ) {
|
|
C15281gmQ c15281gmQ2 = (C15281gmQ) elementAt;
|
|
c15281gmQ.m = c15281gmQ2.m;
|
|
c15281gmQ.l = c15281gmQ2.l;
|
|
c15281gmQ.f = c15281gmQ2.f;
|
|
c15281gmQ.k = c15281gmQ2.k;
|
|
c15281gmQ.i = c15281gmQ2.i;
|
|
c15281gmQ.n = c15281gmQ2.n;
|
|
c15281gmQ.h = c15281gmQ2.h;
|
|
return;
|
|
}
|
|
c15281gmQ.m = null;
|
|
c15281gmQ.l = null;
|
|
c15281gmQ.f = 0;
|
|
c15281gmQ.k = null;
|
|
c15281gmQ.i = null;
|
|
c15281gmQ.n = elementAt;
|
|
c15281gmQ.h = false;
|
|
}
|
|
|
|
public final gmO b() {
|
|
gmO gmo = new gmO(this.c, this.e);
|
|
for (int i = 0; i < this.b.size(); i++) {
|
|
Object elementAt = this.b.elementAt(i);
|
|
if (!(elementAt instanceof C15281gmQ)) {
|
|
if (elementAt instanceof gmO) {
|
|
gmo.b.addElement(((gmO) elementAt).b());
|
|
}
|
|
} else {
|
|
gmo.b.addElement((C15281gmQ) ((C15281gmQ) this.b.elementAt(i)).clone());
|
|
}
|
|
}
|
|
for (int i2 = 0; i2 < this.a.size(); i2++) {
|
|
C15277gmK c15277gmK = new C15277gmK();
|
|
d(i2, c15277gmK);
|
|
gmo.a.addElement(c15277gmK);
|
|
}
|
|
return gmo;
|
|
}
|
|
|
|
@Override // o.InterfaceC15276gmJ
|
|
public void setProperty(int i, Object obj) {
|
|
Object elementAt = this.b.elementAt(i);
|
|
if (elementAt instanceof C15281gmQ) {
|
|
((C15281gmQ) elementAt).a(obj);
|
|
}
|
|
}
|
|
|
|
public final gmO d(String str, Object obj) {
|
|
Class<?> cls;
|
|
C15281gmQ c15281gmQ = new C15281gmQ();
|
|
c15281gmQ.m = str;
|
|
if (obj == null) {
|
|
cls = C15281gmQ.b;
|
|
} else {
|
|
cls = obj.getClass();
|
|
}
|
|
c15281gmQ.k = cls;
|
|
c15281gmQ.n = obj;
|
|
this.b.addElement(c15281gmQ);
|
|
return this;
|
|
}
|
|
|
|
public final gmO e(String str, String str2, Object obj) {
|
|
Class<?> cls;
|
|
C15281gmQ c15281gmQ = new C15281gmQ();
|
|
c15281gmQ.m = str2;
|
|
c15281gmQ.l = str;
|
|
if (obj == null) {
|
|
cls = C15281gmQ.b;
|
|
} else {
|
|
cls = obj.getClass();
|
|
}
|
|
c15281gmQ.k = cls;
|
|
c15281gmQ.n = obj;
|
|
this.b.addElement(c15281gmQ);
|
|
return this;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder("");
|
|
sb.append(this.e);
|
|
sb.append(UrlTreeKt.componentParamPrefix);
|
|
StringBuffer stringBuffer = new StringBuffer(sb.toString());
|
|
for (int i = 0; i < getPropertyCount(); i++) {
|
|
Object elementAt = this.b.elementAt(i);
|
|
if (elementAt instanceof C15281gmQ) {
|
|
stringBuffer.append(((C15281gmQ) elementAt).m).append(ContainerUtils.KEY_VALUE_DELIMITER).append(getProperty(i)).append("; ");
|
|
} else {
|
|
stringBuffer.append(((gmO) elementAt).toString());
|
|
}
|
|
}
|
|
stringBuffer.append(UrlTreeKt.componentParamSuffix);
|
|
return stringBuffer.toString();
|
|
}
|
|
|
|
@Override // o.gmM
|
|
public final void c(Object obj) {
|
|
this.d = obj;
|
|
}
|
|
|
|
@Override // o.gmM
|
|
public final Object d() {
|
|
return this.d;
|
|
}
|
|
}
|