what-the-bank/sources/com/google/android/libraries/places/internal/zzaea.java

117 lines
3.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.internal;
import java.io.IOException;
import java.nio.charset.Charset;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public class zzaea extends zzadz {
protected final byte[] zza;
/* JADX INFO: Access modifiers changed from: package-private */
public zzaea(byte[] bArr) {
this.zza = bArr;
}
@Override // com.google.android.libraries.places.internal.zzaed
public final boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof zzaed) || zzd() != ((zzaed) obj).zzd()) {
return false;
}
if (zzd() == 0) {
return true;
}
if (obj instanceof zzaea) {
zzaea zzaeaVar = (zzaea) obj;
int zzk = zzk();
int zzk2 = zzaeaVar.zzk();
if (zzk != 0 && zzk2 != 0 && zzk != zzk2) {
return false;
}
int zzd = zzd();
if (zzd > zzaeaVar.zzd()) {
int zzd2 = zzd();
StringBuilder sb = new StringBuilder("Length too large: ");
sb.append(zzd);
sb.append(zzd2);
throw new IllegalArgumentException(sb.toString());
}
if (zzd > zzaeaVar.zzd()) {
int zzd3 = zzaeaVar.zzd();
StringBuilder sb2 = new StringBuilder("Ran off end of other: 0, ");
sb2.append(zzd);
sb2.append(", ");
sb2.append(zzd3);
throw new IllegalArgumentException(sb2.toString());
}
if (zzaeaVar instanceof zzaea) {
byte[] bArr = this.zza;
byte[] bArr2 = zzaeaVar.zza;
zzaeaVar.zzc();
int i = 0;
int i2 = 0;
while (i < zzd) {
if (bArr[i] != bArr2[i2]) {
return false;
}
i++;
i2++;
}
return true;
}
return zzaeaVar.zzf(0, zzd).equals(zzf(0, zzd));
}
return obj.equals(this);
}
@Override // com.google.android.libraries.places.internal.zzaed
public byte zza(int i) {
return this.zza[i];
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // com.google.android.libraries.places.internal.zzaed
public byte zzb(int i) {
return this.zza[i];
}
protected int zzc() {
return 0;
}
@Override // com.google.android.libraries.places.internal.zzaed
protected final int zze(int i, int i2, int i3) {
return zzafh.zzd(i, this.zza, 0, i3);
}
@Override // com.google.android.libraries.places.internal.zzaed
public final zzaed zzf(int i, int i2) {
zzj(0, i2, zzd());
return i2 == 0 ? zzaed.zzb : new zzadx(this.zza, 0, i2);
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // com.google.android.libraries.places.internal.zzaed
public final void zzh(zzadt zzadtVar) throws IOException {
((zzaei) zzadtVar).zzc(this.zza, 0, zzd());
}
@Override // com.google.android.libraries.places.internal.zzaed
public final boolean zzi() {
return zzahw.zze(this.zza, 0, zzd());
}
@Override // com.google.android.libraries.places.internal.zzaed
protected final String zzg(Charset charset) {
return new String(this.zza, 0, zzd(), charset);
}
@Override // com.google.android.libraries.places.internal.zzaed
public int zzd() {
return this.zza.length;
}
}