alexandroid/decompiled/jadx/sources/com/amazon/apl/android/primitive/ArrayGetter.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

35 lines
992 B
Java

package com.amazon.apl.android.primitive;
import com.amazon.apl.android.primitive.IterableProperty;
import com.amazon.apl.enums.APLEnum;
import com.amazon.common.BoundObject;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes20.dex */
abstract class ArrayGetter<K extends IterableProperty<T>, T> {
protected final BoundObject mBoundObject;
protected final APLEnum mPropertyKey;
public ArrayGetter(BoundObject boundObject, APLEnum aPLEnum) {
this.mBoundObject = boundObject;
this.mPropertyKey = aPLEnum;
}
private static native int nSize(long j, int i);
public abstract K builder();
public abstract T get(int i);
public int getIndex() {
return this.mPropertyKey.getIndex();
}
public long getNativeHandle() {
return this.mBoundObject.getNativeHandle();
}
public int size() {
return nSize(getNativeHandle(), getIndex());
}
}