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

    static {
        Covode.recordClassIndex(29930);
    }

    public void finalize() {
        LIZ();
    }

    public VecNLEClipAlgorithmParam() {
        this(NLEMediaJniJNI.new_VecNLEClipAlgorithmParam__SWIG_0());
        MethodCollector.i(2160);
        MethodCollector.o(2160);
    }

    public void clear() {
        MethodCollector.i(2227);
        NLEMediaJniJNI.VecNLEClipAlgorithmParam_clear(this.LIZIZ, this);
        MethodCollector.o(2227);
    }

    public boolean isEmpty() {
        MethodCollector.i(2224);
        boolean VecNLEClipAlgorithmParam_isEmpty = NLEMediaJniJNI.VecNLEClipAlgorithmParam_isEmpty(this.LIZIZ, this);
        MethodCollector.o(2224);
        return VecNLEClipAlgorithmParam_isEmpty;
    }

    public int size() {
        MethodCollector.i(4373);
        int VecNLEClipAlgorithmParam_doSize = NLEMediaJniJNI.VecNLEClipAlgorithmParam_doSize(this.LIZIZ, this);
        MethodCollector.o(4373);
        return VecNLEClipAlgorithmParam_doSize;
    }

    private synchronized void LIZ() {
        MethodCollector.i(4223);
        long j = this.LIZIZ;
        if (j != 0) {
            if (this.LIZ) {
                this.LIZ = false;
                NLEMediaJniJNI.delete_VecNLEClipAlgorithmParam(j);
            }
            this.LIZIZ = 0;
        }
        MethodCollector.o(4223);
    }

    /* access modifiers changed from: private */
    /* renamed from: LIZ */
    public boolean add(NLEClipAlgorithmParam nLEClipAlgorithmParam) {
        this.modCount++;
        LIZIZ(nLEClipAlgorithmParam);
        return true;
    }

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

    private void LIZIZ(NLEClipAlgorithmParam nLEClipAlgorithmParam) {
        MethodCollector.i(2229);
        NLEClipAlgorithmParam nLEClipAlgorithmParam2 = nLEClipAlgorithmParam;
        NLEMediaJniJNI.VecNLEClipAlgorithmParam_doAdd__SWIG_0(this.LIZIZ, this, NLEClipAlgorithmParam.LIZ(nLEClipAlgorithmParam2), nLEClipAlgorithmParam2);
        MethodCollector.o(2229);
    }

    public /* synthetic */ Object get(int i) {
        MethodCollector.i(2365);
        long VecNLEClipAlgorithmParam_doGet = NLEMediaJniJNI.VecNLEClipAlgorithmParam_doGet(this.LIZIZ, this, i);
        if (VecNLEClipAlgorithmParam_doGet == 0) {
            MethodCollector.o(2365);
            return null;
        }
        NLEClipAlgorithmParam nLEClipAlgorithmParam = new NLEClipAlgorithmParam(VecNLEClipAlgorithmParam_doGet);
        MethodCollector.o(2365);
        return nLEClipAlgorithmParam;
    }

    public VecNLEClipAlgorithmParam(Iterable<NLEClipAlgorithmParam> iterable) {
        this();
        for (NLEClipAlgorithmParam LIZ2 : iterable) {
            add(LIZ2);
        }
    }

    public /* synthetic */ Object remove(int i) {
        MethodCollector.i(2231);
        this.modCount++;
        long VecNLEClipAlgorithmParam_doRemove = NLEMediaJniJNI.VecNLEClipAlgorithmParam_doRemove(this.LIZIZ, this, i);
        if (VecNLEClipAlgorithmParam_doRemove == 0) {
            MethodCollector.o(2231);
            return null;
        }
        NLEClipAlgorithmParam nLEClipAlgorithmParam = new NLEClipAlgorithmParam(VecNLEClipAlgorithmParam_doRemove);
        MethodCollector.o(2231);
        return nLEClipAlgorithmParam;
    }

    public /* synthetic */ void add(int i, Object obj) {
        MethodCollector.i(2236);
        NLEClipAlgorithmParam nLEClipAlgorithmParam = (NLEClipAlgorithmParam) obj;
        this.modCount++;
        NLEMediaJniJNI.VecNLEClipAlgorithmParam_doAdd__SWIG_1(this.LIZIZ, this, i, NLEClipAlgorithmParam.LIZ(nLEClipAlgorithmParam), nLEClipAlgorithmParam);
        MethodCollector.o(2236);
    }

    public void removeRange(int i, int i2) {
        MethodCollector.i(4303);
        this.modCount++;
        NLEMediaJniJNI.VecNLEClipAlgorithmParam_doRemoveRange(this.LIZIZ, this, i, i2);
        MethodCollector.o(4303);
    }

    public /* synthetic */ Object set(int i, Object obj) {
        MethodCollector.i(2295);
        NLEClipAlgorithmParam nLEClipAlgorithmParam = (NLEClipAlgorithmParam) obj;
        long VecNLEClipAlgorithmParam_doSet = NLEMediaJniJNI.VecNLEClipAlgorithmParam_doSet(this.LIZIZ, this, i, NLEClipAlgorithmParam.LIZ(nLEClipAlgorithmParam), nLEClipAlgorithmParam);
        if (VecNLEClipAlgorithmParam_doSet == 0) {
            MethodCollector.o(2295);
            return null;
        }
        NLEClipAlgorithmParam nLEClipAlgorithmParam2 = new NLEClipAlgorithmParam(VecNLEClipAlgorithmParam_doSet);
        MethodCollector.o(2295);
        return nLEClipAlgorithmParam2;
    }
}
