209 lines
6.2 KiB
Java
209 lines
6.2 KiB
Java
package o;
|
|
|
|
import com.google.protobuf.CodedOutputStream;
|
|
import com.google.protobuf.InvalidProtocolBufferException;
|
|
import java.io.IOException;
|
|
import java.util.Arrays;
|
|
import o.InterfaceC16095lEl;
|
|
|
|
/* renamed from: o.IsC, reason: case insensitive filesystem */
|
|
/* loaded from: classes2.dex */
|
|
public final class C0526IsC {
|
|
private static final C0526IsC g = new C0526IsC(0, new int[0], new Object[0], false);
|
|
int a;
|
|
Object[] b;
|
|
int c;
|
|
boolean d;
|
|
int[] e;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static C0526IsC e() {
|
|
return new C0526IsC();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static C0526IsC c(C0526IsC c0526IsC, C0526IsC c0526IsC2) {
|
|
int i = c0526IsC.c + c0526IsC2.c;
|
|
int[] copyOf = Arrays.copyOf(c0526IsC.e, i);
|
|
System.arraycopy(c0526IsC2.e, 0, copyOf, c0526IsC.c, c0526IsC2.c);
|
|
Object[] copyOf2 = Arrays.copyOf(c0526IsC.b, i);
|
|
System.arraycopy(c0526IsC2.b, 0, copyOf2, c0526IsC.c, c0526IsC2.c);
|
|
return new C0526IsC(i, copyOf, copyOf2, true);
|
|
}
|
|
|
|
private C0526IsC() {
|
|
this(0, new int[8], new Object[8], true);
|
|
}
|
|
|
|
private C0526IsC(int i, int[] iArr, Object[] objArr, boolean z) {
|
|
this.a = -1;
|
|
this.c = i;
|
|
this.e = iArr;
|
|
this.b = objArr;
|
|
this.d = z;
|
|
}
|
|
|
|
public final void e(InterfaceC16095lEl interfaceC16095lEl) throws IOException {
|
|
if (this.c == 0) {
|
|
return;
|
|
}
|
|
if (interfaceC16095lEl.d() == InterfaceC16095lEl.Sts.ASCENDING) {
|
|
for (int i = 0; i < this.c; i++) {
|
|
b(this.e[i], this.b[i], interfaceC16095lEl);
|
|
}
|
|
return;
|
|
}
|
|
for (int i2 = this.c - 1; i2 >= 0; i2--) {
|
|
b(this.e[i2], this.b[i2], interfaceC16095lEl);
|
|
}
|
|
}
|
|
|
|
private static void b(int i, Object obj, InterfaceC16095lEl interfaceC16095lEl) throws IOException {
|
|
int b = Nvr.b(i);
|
|
int c = Nvr.c(i);
|
|
if (c == 0) {
|
|
interfaceC16095lEl.d(b, ((Long) obj).longValue());
|
|
return;
|
|
}
|
|
if (c == 1) {
|
|
interfaceC16095lEl.c(b, ((Long) obj).longValue());
|
|
return;
|
|
}
|
|
if (c == 2) {
|
|
interfaceC16095lEl.e(b, (QwV) obj);
|
|
return;
|
|
}
|
|
if (c != 3) {
|
|
if (c == 5) {
|
|
interfaceC16095lEl.e(b, ((Integer) obj).intValue());
|
|
return;
|
|
}
|
|
throw new RuntimeException(InvalidProtocolBufferException.e());
|
|
}
|
|
if (interfaceC16095lEl.d() == InterfaceC16095lEl.Sts.ASCENDING) {
|
|
interfaceC16095lEl.e(b);
|
|
((C0526IsC) obj).e(interfaceC16095lEl);
|
|
interfaceC16095lEl.b(b);
|
|
} else {
|
|
interfaceC16095lEl.b(b);
|
|
((C0526IsC) obj).e(interfaceC16095lEl);
|
|
interfaceC16095lEl.e(b);
|
|
}
|
|
}
|
|
|
|
public final int a() {
|
|
int c;
|
|
int i = this.a;
|
|
if (i != -1) {
|
|
return i;
|
|
}
|
|
int i2 = 0;
|
|
for (int i3 = 0; i3 < this.c; i3++) {
|
|
int i4 = this.e[i3];
|
|
int b = Nvr.b(i4);
|
|
int c2 = Nvr.c(i4);
|
|
if (c2 == 0) {
|
|
c = CodedOutputStream.c(b, ((Long) this.b[i3]).longValue());
|
|
} else if (c2 == 1) {
|
|
c = CodedOutputStream.d(b);
|
|
} else if (c2 == 2) {
|
|
c = CodedOutputStream.e(b, (QwV) this.b[i3]);
|
|
} else if (c2 == 3) {
|
|
c = (CodedOutputStream.o(b) << 1) + ((C0526IsC) this.b[i3]).a();
|
|
} else if (c2 == 5) {
|
|
c = CodedOutputStream.e(b);
|
|
} else {
|
|
throw new IllegalStateException(InvalidProtocolBufferException.e());
|
|
}
|
|
i2 += c;
|
|
}
|
|
this.a = i2;
|
|
return i2;
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj == null || !(obj instanceof C0526IsC)) {
|
|
return false;
|
|
}
|
|
C0526IsC c0526IsC = (C0526IsC) obj;
|
|
int i = this.c;
|
|
if (i == c0526IsC.c) {
|
|
int[] iArr = this.e;
|
|
int[] iArr2 = c0526IsC.e;
|
|
int i2 = 0;
|
|
while (true) {
|
|
if (i2 >= i) {
|
|
Object[] objArr = this.b;
|
|
Object[] objArr2 = c0526IsC.b;
|
|
int i3 = this.c;
|
|
for (int i4 = 0; i4 < i3; i4++) {
|
|
if (objArr[i4].equals(objArr2[i4])) {
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
if (iArr[i2] != iArr2[i2]) {
|
|
break;
|
|
}
|
|
i2++;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final void a(StringBuilder sb, int i) {
|
|
for (int i2 = 0; i2 < this.c; i2++) {
|
|
VWe.d(sb, i, String.valueOf(Nvr.b(this.e[i2])), this.b[i2]);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final void a(int i, Object obj) {
|
|
if (this.d) {
|
|
b();
|
|
int[] iArr = this.e;
|
|
int i2 = this.c;
|
|
iArr[i2] = i;
|
|
this.b[i2] = obj;
|
|
this.c = i2 + 1;
|
|
return;
|
|
}
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
private void b() {
|
|
int i = this.c;
|
|
int[] iArr = this.e;
|
|
if (i == iArr.length) {
|
|
int i2 = i + (i < 4 ? 8 : i >> 1);
|
|
this.e = Arrays.copyOf(iArr, i2);
|
|
this.b = Arrays.copyOf(this.b, i2);
|
|
}
|
|
}
|
|
|
|
public final int hashCode() {
|
|
int i = this.c;
|
|
int[] iArr = this.e;
|
|
int i2 = 17;
|
|
int i3 = 17;
|
|
for (int i4 = 0; i4 < i; i4++) {
|
|
i3 = (i3 * 31) + iArr[i4];
|
|
}
|
|
Object[] objArr = this.b;
|
|
int i5 = this.c;
|
|
int i6 = (((i + 527) * 31) + i3) * 31;
|
|
for (int i7 = 0; i7 < i5; i7++) {
|
|
i2 = (i2 * 31) + objArr[i7].hashCode();
|
|
}
|
|
return i6 + i2;
|
|
}
|
|
|
|
public static C0526IsC d() {
|
|
return g;
|
|
}
|
|
}
|