what-the-bank/sources/com/google/android/gms/internal/common/zzaa.java

48 lines
1.2 KiB
Java

package com.google.android.gms.internal.common;
import java.util.Arrays;
/* loaded from: classes2.dex */
class zzaa extends zzab {
Object[] zza = new Object[4];
int zzb = 0;
boolean zzc;
private final void zzb(int i) {
Object[] objArr = this.zza;
int length = objArr.length;
if (length >= i) {
if (this.zzc) {
this.zza = (Object[]) objArr.clone();
this.zzc = false;
return;
}
return;
}
int i2 = length + (length >> 1) + 1;
if (i2 < i) {
int highestOneBit = Integer.highestOneBit(i - 1);
i2 = highestOneBit + highestOneBit;
}
if (i2 < 0) {
i2 = Integer.MAX_VALUE;
}
this.zza = Arrays.copyOf(objArr, i2);
this.zzc = false;
}
public final zzaa zza(Object obj) {
obj.getClass();
zzb(this.zzb + 1);
Object[] objArr = this.zza;
int i = this.zzb;
this.zzb = i + 1;
objArr[i] = obj;
return this;
}
/* JADX INFO: Access modifiers changed from: package-private */
public zzaa(int i) {
}
}