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

    static {
        Covode.recordClassIndex(29922);
    }

    public void finalize() {
        LIZ();
    }

    public VecDouble() {
        this(NLEEditorJniJNI.new_VecDouble__SWIG_0());
        MethodCollector.i(18399);
        MethodCollector.o(18399);
    }

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

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

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

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

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

    public /* synthetic */ Object get(int i) {
        MethodCollector.i(13928);
        Double valueOf = Double.valueOf(NLEEditorJniJNI.VecDouble_doGet(this.LIZIZ, this, i));
        MethodCollector.o(13928);
        return valueOf;
    }

    public /* synthetic */ Object remove(int i) {
        MethodCollector.i(18405);
        this.modCount++;
        Double valueOf = Double.valueOf(NLEEditorJniJNI.VecDouble_doRemove(this.LIZIZ, this, i));
        MethodCollector.o(18405);
        return valueOf;
    }

    public /* synthetic */ boolean add(Object obj) {
        MethodCollector.i(13930);
        this.modCount++;
        NLEEditorJniJNI.VecDouble_doAdd__SWIG_0(this.LIZIZ, this, ((Double) obj).doubleValue());
        MethodCollector.o(13930);
        return true;
    }

    public /* synthetic */ void add(int i, Object obj) {
        MethodCollector.i(13925);
        this.modCount++;
        NLEEditorJniJNI.VecDouble_doAdd__SWIG_1(this.LIZIZ, this, i, ((Double) obj).doubleValue());
        MethodCollector.o(13925);
    }

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

    public /* synthetic */ Object set(int i, Object obj) {
        MethodCollector.i(13927);
        Double valueOf = Double.valueOf(NLEEditorJniJNI.VecDouble_doSet(this.LIZIZ, this, i, ((Double) obj).doubleValue()));
        MethodCollector.o(13927);
        return valueOf;
    }
}
