mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
33 lines
1.6 KiB
Java
33 lines
1.6 KiB
Java
package kotlin.jvm.internal;
|
|
|
|
import kotlin.Metadata;
|
|
|
|
/* compiled from: PrimitiveSpreadBuilders.kt */
|
|
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0013\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0006\n\u0002\b\u0003\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\u000e\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\nJ\u0006\u0010\u000b\u001a\u00020\u0002J\f\u0010\f\u001a\u00020\u0004*\u00020\u0002H\u0014R\u000e\u0010\u0006\u001a\u00020\u0002X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\r"}, d2 = {"Lkotlin/jvm/internal/DoubleSpreadBuilder;", "Lkotlin/jvm/internal/PrimitiveSpreadBuilder;", "", "size", "", "(I)V", "values", "add", "", "value", "", "toArray", "getSize", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public final class DoubleSpreadBuilder extends PrimitiveSpreadBuilder<double[]> {
|
|
private final double[] values;
|
|
|
|
public DoubleSpreadBuilder(int i) {
|
|
super(i);
|
|
this.values = new double[i];
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // kotlin.jvm.internal.PrimitiveSpreadBuilder
|
|
public int getSize(double[] dArr) {
|
|
Intrinsics.checkNotNullParameter(dArr, "<this>");
|
|
return dArr.length;
|
|
}
|
|
|
|
public final void add(double value) {
|
|
double[] dArr = this.values;
|
|
int position = getPosition();
|
|
setPosition(position + 1);
|
|
dArr[position] = value;
|
|
}
|
|
|
|
public final double[] toArray() {
|
|
return toArray(this.values, new double[size()]);
|
|
}
|
|
}
|