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

50 lines
1.3 KiB
Java

package com.google.android.libraries.places.internal;
import java.util.Arrays;
/* loaded from: classes2.dex */
public final class zzja {
Object[] zza = new Object[8];
int zzb = 0;
zziz zzc;
public final zzja zza(Object obj, Object obj2) {
int i = this.zzb + 1;
Object[] objArr = this.zza;
int length = objArr.length;
int i2 = i + i;
if (i2 > length) {
int i3 = length + (length >> 1) + 1;
if (i3 < i2) {
int highestOneBit = Integer.highestOneBit(i2 - 1);
i3 = highestOneBit + highestOneBit;
}
if (i3 < 0) {
i3 = Integer.MAX_VALUE;
}
this.zza = Arrays.copyOf(objArr, i3);
}
zzin.zza(obj, obj2);
Object[] objArr2 = this.zza;
int i4 = this.zzb;
int i5 = i4 + i4;
objArr2[i5] = obj;
objArr2[i5 + 1] = obj2;
this.zzb = i4 + 1;
return this;
}
public final zzjb zzb() {
zziz zzizVar = this.zzc;
if (zzizVar == null) {
zzjr zzf = zzjr.zzf(this.zzb, this.zza, this);
zziz zzizVar2 = this.zzc;
if (zzizVar2 == null) {
return zzf;
}
throw zzizVar2.zza();
}
throw zzizVar.zza();
}
}