package c.i.a.c.i2; import c.d.b.a.a; import java.util.Arrays; /* compiled from: LongArray */ public final class q { public int a; public long[] b = new long[32]; public void a(long j) { int i = this.a; long[] jArr = this.b; if (i == jArr.length) { this.b = Arrays.copyOf(jArr, i * 2); } long[] jArr2 = this.b; int i2 = this.a; this.a = i2 + 1; jArr2[i2] = j; } public long b(int i) { if (i >= 0 && i < this.a) { return this.b[i]; } StringBuilder L = a.L("Invalid index ", i, ", size is "); L.append(this.a); throw new IndexOutOfBoundsException(L.toString()); } }