93 lines
2.9 KiB
Java
93 lines
2.9 KiB
Java
package c.i.a.f.h.l;
|
|
|
|
import c.d.b.a.a;
|
|
import c.i.a.f.e.o.f;
|
|
import java.io.IOException;
|
|
import java.io.Serializable;
|
|
import java.nio.charset.Charset;
|
|
import java.util.Iterator;
|
|
import java.util.Locale;
|
|
/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
|
|
public abstract class t3 implements Serializable, Iterable<Byte> {
|
|
public static final t3 i = new z3(w4.b);
|
|
public static final x3 j = (q3.a() ? new c4(null) : new w3(null));
|
|
private int zzc = 0;
|
|
|
|
public static t3 h(byte[] bArr, int i2, int i3) {
|
|
l(i2, i2 + i3, bArr.length);
|
|
return new z3(j.a(bArr, i2, i3));
|
|
}
|
|
|
|
public static int l(int i2, int i3, int i4) {
|
|
int i5 = i3 - i2;
|
|
if ((i2 | i3 | i5 | (i4 - i3)) >= 0) {
|
|
return i5;
|
|
}
|
|
if (i2 < 0) {
|
|
StringBuilder sb = new StringBuilder(32);
|
|
sb.append("Beginning index: ");
|
|
sb.append(i2);
|
|
sb.append(" < 0");
|
|
throw new IndexOutOfBoundsException(sb.toString());
|
|
} else if (i3 < i2) {
|
|
throw new IndexOutOfBoundsException(a.g(66, "Beginning index larger than ending index: ", i2, ", ", i3));
|
|
} else {
|
|
throw new IndexOutOfBoundsException(a.g(37, "End index: ", i3, " >= ", i4));
|
|
}
|
|
}
|
|
|
|
public abstract byte c(int i2);
|
|
|
|
public abstract int d();
|
|
|
|
public abstract int e(int i2, int i3, int i4);
|
|
|
|
@Override // java.lang.Object
|
|
public abstract boolean equals(Object obj);
|
|
|
|
public abstract t3 g(int i2, int i3);
|
|
|
|
@Override // java.lang.Object
|
|
public final int hashCode() {
|
|
int i2 = this.zzc;
|
|
if (i2 == 0) {
|
|
int d = d();
|
|
i2 = e(d, 0, d);
|
|
if (i2 == 0) {
|
|
i2 = 1;
|
|
}
|
|
this.zzc = i2;
|
|
}
|
|
return i2;
|
|
}
|
|
|
|
public abstract String i(Charset charset);
|
|
|
|
/* Return type fixed from 'java.util.Iterator' to match base method */
|
|
@Override // java.lang.Iterable
|
|
public /* synthetic */ Iterator<Byte> iterator() {
|
|
return new v3(this);
|
|
}
|
|
|
|
public abstract void j(u3 u3Var) throws IOException;
|
|
|
|
public abstract byte k(int i2);
|
|
|
|
public abstract boolean m();
|
|
|
|
public final int n() {
|
|
return this.zzc;
|
|
}
|
|
|
|
/* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x003d: APUT (r1v1 java.lang.Object[]), (2 ??[int, float, short, byte, char]), (r2v5 java.lang.String) */
|
|
@Override // java.lang.Object
|
|
public final String toString() {
|
|
Locale locale = Locale.ROOT;
|
|
Object[] objArr = new Object[3];
|
|
objArr[0] = Integer.toHexString(System.identityHashCode(this));
|
|
objArr[1] = Integer.valueOf(d());
|
|
objArr[2] = d() <= 50 ? f.E1(this) : String.valueOf(f.E1(g(0, 47))).concat("...");
|
|
return String.format(locale, "<ByteString@%s size=%d contents=\"%s\">", objArr);
|
|
}
|
|
}
|