89 lines
2.5 KiB
Java
89 lines
2.5 KiB
Java
|
package com.google.android.libraries.places.internal;
|
||
|
|
||
|
import java.io.IOException;
|
||
|
import java.io.Serializable;
|
||
|
import java.nio.charset.Charset;
|
||
|
import java.util.Comparator;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.Locale;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public abstract class zzaed implements Iterable, Serializable {
|
||
|
private int zzc = 0;
|
||
|
public static final zzaed zzb = new zzaea(zzafh.zzd);
|
||
|
private static final zzaec zzd = new zzaec(null);
|
||
|
private static final Comparator zza = new zzadv();
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int zzj(int i, int i2, int i3) {
|
||
|
if (((i3 - i2) | i2) >= 0) {
|
||
|
return i2;
|
||
|
}
|
||
|
StringBuilder sb = new StringBuilder("End index: ");
|
||
|
sb.append(i2);
|
||
|
sb.append(" >= ");
|
||
|
sb.append(i3);
|
||
|
throw new IndexOutOfBoundsException(sb.toString());
|
||
|
}
|
||
|
|
||
|
public static zzaed zzl(String str) {
|
||
|
return new zzaea(str.getBytes(zzafh.zzb));
|
||
|
}
|
||
|
|
||
|
public abstract boolean equals(Object obj);
|
||
|
|
||
|
public final int hashCode() {
|
||
|
int i = this.zzc;
|
||
|
if (i == 0) {
|
||
|
int zzd2 = zzd();
|
||
|
i = zze(zzd2, 0, zzd2);
|
||
|
if (i == 0) {
|
||
|
i = 1;
|
||
|
}
|
||
|
this.zzc = i;
|
||
|
}
|
||
|
return i;
|
||
|
}
|
||
|
|
||
|
public final String toString() {
|
||
|
Locale locale = Locale.ROOT;
|
||
|
Object[] objArr = new Object[3];
|
||
|
objArr[0] = Integer.toHexString(System.identityHashCode(this));
|
||
|
objArr[1] = Integer.valueOf(zzd());
|
||
|
objArr[2] = zzd() <= 50 ? zzahg.zza(this) : zzahg.zza(zzf(0, 47)).concat("...");
|
||
|
return String.format(locale, "<ByteString@%s size=%d contents=\"%s\">", objArr);
|
||
|
}
|
||
|
|
||
|
public abstract byte zza(int i);
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public abstract byte zzb(int i);
|
||
|
|
||
|
public abstract int zzd();
|
||
|
|
||
|
protected abstract int zze(int i, int i2, int i3);
|
||
|
|
||
|
public abstract zzaed zzf(int i, int i2);
|
||
|
|
||
|
protected abstract String zzg(Charset charset);
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public abstract void zzh(zzadt zzadtVar) throws IOException;
|
||
|
|
||
|
public abstract boolean zzi();
|
||
|
|
||
|
public final String zzm(Charset charset) {
|
||
|
return zzd() == 0 ? "" : zzg(charset);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final int zzk() {
|
||
|
return this.zzc;
|
||
|
}
|
||
|
|
||
|
@Override // java.lang.Iterable
|
||
|
public final /* synthetic */ Iterator iterator() {
|
||
|
return new zzadu(this);
|
||
|
}
|
||
|
}
|