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 VecUInt32 extends AbstractList<Long> implements RandomAccess {
    public transient boolean LIZ;
    public transient long LIZIZ;

    static {
        Covode.recordClassIndex(29973);
    }

    public void finalize() {
        LIZ();
    }

    public VecUInt32() {
        this(NLETemplateJNI.new_VecUInt32__SWIG_0());
        MethodCollector.i(8429);
        MethodCollector.o(8429);
    }

    public void clear() {
        MethodCollector.i(8614);
        NLETemplateJNI.VecUInt32_clear(this.LIZIZ, this);
        MethodCollector.o(8614);
    }

    public boolean isEmpty() {
        MethodCollector.i(8432);
        boolean VecUInt32_isEmpty = NLETemplateJNI.VecUInt32_isEmpty(this.LIZIZ, this);
        MethodCollector.o(8432);
        return VecUInt32_isEmpty;
    }

    public int size() {
        MethodCollector.i(8427);
        int VecUInt32_doSize = NLETemplateJNI.VecUInt32_doSize(this.LIZIZ, this);
        MethodCollector.o(8427);
        return VecUInt32_doSize;
    }

    private synchronized void LIZ() {
        MethodCollector.i(7997);
        long j = this.LIZIZ;
        if (j != 0) {
            if (this.LIZ) {
                this.LIZ = false;
                NLETemplateJNI.delete_VecUInt32(j);
            }
            this.LIZIZ = 0;
        }
        MethodCollector.o(7997);
    }

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

    public /* synthetic */ Object get(int i) {
        MethodCollector.i(9189);
        Long valueOf = Long.valueOf(NLETemplateJNI.VecUInt32_doGet(this.LIZIZ, this, i));
        MethodCollector.o(9189);
        return valueOf;
    }

    public /* synthetic */ Object remove(int i) {
        MethodCollector.i(8616);
        this.modCount++;
        Long valueOf = Long.valueOf(NLETemplateJNI.VecUInt32_doRemove(this.LIZIZ, this, i));
        MethodCollector.o(8616);
        return valueOf;
    }

    public /* synthetic */ boolean add(Object obj) {
        MethodCollector.i(9391);
        this.modCount++;
        NLETemplateJNI.VecUInt32_doAdd__SWIG_0(this.LIZIZ, this, ((Long) obj).longValue());
        MethodCollector.o(9391);
        return true;
    }

    public /* synthetic */ void add(int i, Object obj) {
        MethodCollector.i(8821);
        this.modCount++;
        NLETemplateJNI.VecUInt32_doAdd__SWIG_1(this.LIZIZ, this, i, ((Long) obj).longValue());
        MethodCollector.o(8821);
    }

    public void removeRange(int i, int i2) {
        MethodCollector.i(8221);
        this.modCount++;
        NLETemplateJNI.VecUInt32_doRemoveRange(this.LIZIZ, this, i, i2);
        MethodCollector.o(8221);
    }

    public /* synthetic */ Object set(int i, Object obj) {
        MethodCollector.i(8994);
        Long valueOf = Long.valueOf(NLETemplateJNI.VecUInt32_doSet(this.LIZIZ, this, i, ((Long) obj).longValue()));
        MethodCollector.o(8994);
        return valueOf;
    }
}
