package com.seewo.sdk.internal.command.configure;

import com.seewo.sdk.internal.command.CmdBase;
import com.seewo.sdk.util.pool.SDKPool;
import com.seewo.sdk.util.pool.SDKPoolObject;
import com.seewo.sdk.util.pool.SDKPools;

/* JADX INFO: loaded from: classes.dex */
public class CmdConfigure extends CmdBase implements SDKPoolObject {
    private static SDKPool<CmdConfigure> sPool = SDKPools.pool();
    private SDKConfigureType mType;

    private CmdConfigure() {
        super(null);
    }

    public static CmdConfigure obtain(SDKConfigureType sDKConfigureType) {
        CmdConfigure cmdConfigureObtain = sPool.obtain();
        if (cmdConfigureObtain == null) {
            cmdConfigureObtain = new CmdConfigure();
        }
        cmdConfigureObtain.mType = sDKConfigureType;
        return cmdConfigureObtain;
    }

    public static CmdConfigure obtain(SDKConfigureType sDKConfigureType, Object obj) {
        CmdConfigure cmdConfigureObtain = obtain(sDKConfigureType);
        cmdConfigureObtain.setData(obj);
        return cmdConfigureObtain;
    }

    @Override // com.seewo.sdk.internal.command.CmdBase, com.seewo.sdk.util.pool.SDKPoolObject
    public void recycle() {
        sPool.recycle(this);
    }

    @Override // com.seewo.sdk.internal.command.CmdBase, com.seewo.sdk.util.pool.SDKPoolObject
    public void clear() {
        super.clear();
        this.mType = null;
    }

    public SDKConfigureType getType() {
        return this.mType;
    }

    public void setType(SDKConfigureType sDKConfigureType) {
        this.mType = sDKConfigureType;
    }
}
