package com.bytedance.ies.nle.editor_jni;

import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;

public class NLETimeEffect extends NLETimeSpaceNode {
    public transient long LIZ;
    public transient boolean LIZIZ;

    static {
        Covode.recordClassIndex(29889);
    }

    public void finalize() {
        delete();
    }

    public NLETimeEffect() {
        this(NLEEditorJniJNI.new_NLETimeEffect());
        MethodCollector.i(14160);
        MethodCollector.o(14160);
    }

    public NLENode clone() {
        MethodCollector.i(14159);
        long NLETimeEffect_clone = NLEEditorJniJNI.NLETimeEffect_clone(this.LIZ, this);
        if (NLETimeEffect_clone == 0) {
            MethodCollector.o(14159);
            return null;
        }
        NLENode nLENode = new NLENode(NLETimeEffect_clone, true);
        MethodCollector.o(14159);
        return nLENode;
    }

    public synchronized void delete() {
        MethodCollector.i(14158);
        long j = this.LIZ;
        if (j != 0) {
            if (this.LIZIZ) {
                this.LIZIZ = false;
                NLEEditorJniJNI.delete_NLETimeEffect(j);
            }
            this.LIZ = 0;
        }
        super.delete();
        MethodCollector.o(14158);
    }

    public static long LIZ(NLETimeEffect nLETimeEffect) {
        if (nLETimeEffect == null) {
            return 0;
        }
        return nLETimeEffect.LIZ;
    }

    public void swigSetCMemOwn(boolean z) {
        this.LIZIZ = z;
        super.swigSetCMemOwn(z);
    }

    public NLETimeEffect(long j) {
        super(NLEEditorJniJNI.NLETimeEffect_SWIGSmartPtrUpcast(j), true);
        MethodCollector.i(13709);
        this.LIZIZ = true;
        this.LIZ = j;
        MethodCollector.o(13709);
    }
}
