package com.bytedance.ies.nle.editor_jni;

import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import java.util.AbstractList;
import java.util.RandomAccess;

public class VecNLETrackSlotSPtrConst extends AbstractList<NLETrackSlot> implements RandomAccess {
    public transient boolean LIZ;
    public transient long LIZIZ;

    static {
        Covode.recordClassIndex(29965);
    }

    public void finalize() {
        LIZ();
    }

    public VecNLETrackSlotSPtrConst() {
        this(NLEEditorJniJNI.new_VecNLETrackSlotSPtrConst__SWIG_0());
        MethodCollector.i(13773);
        MethodCollector.o(13773);
    }

    public void clear() {
        MethodCollector.i(19114);
        NLEEditorJniJNI.VecNLETrackSlotSPtrConst_clear(this.LIZIZ, this);
        MethodCollector.o(19114);
    }

    public boolean isEmpty() {
        MethodCollector.i(19110);
        boolean VecNLETrackSlotSPtrConst_isEmpty = NLEEditorJniJNI.VecNLETrackSlotSPtrConst_isEmpty(this.LIZIZ, this);
        MethodCollector.o(19110);
        return VecNLETrackSlotSPtrConst_isEmpty;
    }

    public int size() {
        MethodCollector.i(13772);
        int VecNLETrackSlotSPtrConst_doSize = NLEEditorJniJNI.VecNLETrackSlotSPtrConst_doSize(this.LIZIZ, this);
        MethodCollector.o(13772);
        return VecNLETrackSlotSPtrConst_doSize;
    }

    private synchronized void LIZ() {
        MethodCollector.i(13770);
        long j = this.LIZIZ;
        if (j != 0) {
            if (this.LIZ) {
                this.LIZ = false;
                NLEEditorJniJNI.delete_VecNLETrackSlotSPtrConst(j);
            }
            this.LIZIZ = 0;
        }
        MethodCollector.o(13770);
    }

    public VecNLETrackSlotSPtrConst(long j) {
        this.LIZ = true;
        this.LIZIZ = j;
    }

    public /* synthetic */ Object get(int i) {
        MethodCollector.i(19121);
        long VecNLETrackSlotSPtrConst_doGet = NLEEditorJniJNI.VecNLETrackSlotSPtrConst_doGet(this.LIZIZ, this, i);
        if (VecNLETrackSlotSPtrConst_doGet == 0) {
            MethodCollector.o(19121);
            return null;
        }
        NLETrackSlot nLETrackSlot = new NLETrackSlot(VecNLETrackSlotSPtrConst_doGet);
        MethodCollector.o(19121);
        return nLETrackSlot;
    }

    public /* synthetic */ boolean add(Object obj) {
        MethodCollector.i(19123);
        NLETrackSlot nLETrackSlot = (NLETrackSlot) obj;
        this.modCount++;
        NLEEditorJniJNI.VecNLETrackSlotSPtrConst_doAdd__SWIG_0(this.LIZIZ, this, NLETrackSlot.LIZ(nLETrackSlot), nLETrackSlot);
        MethodCollector.o(19123);
        return true;
    }

    public /* synthetic */ Object remove(int i) {
        MethodCollector.i(19115);
        this.modCount++;
        long VecNLETrackSlotSPtrConst_doRemove = NLEEditorJniJNI.VecNLETrackSlotSPtrConst_doRemove(this.LIZIZ, this, i);
        if (VecNLETrackSlotSPtrConst_doRemove == 0) {
            MethodCollector.o(19115);
            return null;
        }
        NLETrackSlot nLETrackSlot = new NLETrackSlot(VecNLETrackSlotSPtrConst_doRemove);
        MethodCollector.o(19115);
        return nLETrackSlot;
    }

    public /* synthetic */ void add(int i, Object obj) {
        MethodCollector.i(19117);
        NLETrackSlot nLETrackSlot = (NLETrackSlot) obj;
        this.modCount++;
        NLEEditorJniJNI.VecNLETrackSlotSPtrConst_doAdd__SWIG_1(this.LIZIZ, this, i, NLETrackSlot.LIZ(nLETrackSlot), nLETrackSlot);
        MethodCollector.o(19117);
    }

    public void removeRange(int i, int i2) {
        MethodCollector.i(13771);
        this.modCount++;
        NLEEditorJniJNI.VecNLETrackSlotSPtrConst_doRemoveRange(this.LIZIZ, this, i, i2);
        MethodCollector.o(13771);
    }

    public /* synthetic */ Object set(int i, Object obj) {
        MethodCollector.i(19119);
        NLETrackSlot nLETrackSlot = (NLETrackSlot) obj;
        long VecNLETrackSlotSPtrConst_doSet = NLEEditorJniJNI.VecNLETrackSlotSPtrConst_doSet(this.LIZIZ, this, i, NLETrackSlot.LIZ(nLETrackSlot), nLETrackSlot);
        if (VecNLETrackSlotSPtrConst_doSet == 0) {
            MethodCollector.o(19119);
            return null;
        }
        NLETrackSlot nLETrackSlot2 = new NLETrackSlot(VecNLETrackSlotSPtrConst_doSet);
        MethodCollector.o(19119);
        return nLETrackSlot2;
    }
}
