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

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 CmdSystem extends CmdBase implements SDKPoolObject {
    private static SDKPool<CmdSystem> sPool = SDKPools.pool();
    private SDKSystemType mType;

    private CmdSystem() {
        super(null);
    }

    public static CmdSystem obtain(SDKSystemType sDKSystemType) {
        CmdSystem cmdSystemObtain = sPool.obtain();
        if (cmdSystemObtain == null) {
            cmdSystemObtain = new CmdSystem();
        }
        cmdSystemObtain.mType = sDKSystemType;
        return cmdSystemObtain;
    }

    public static CmdSystem obtain(SDKSystemType sDKSystemType, Object obj) {
        CmdSystem cmdSystemObtain = obtain(sDKSystemType);
        cmdSystemObtain.setData(obj);
        return cmdSystemObtain;
    }

    @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 SDKSystemType getType() {
        return this.mType;
    }

    public void setType(SDKSystemType sDKSystemType) {
        this.mType = sDKSystemType;
    }
}
