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

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

    private CmdSource() {
        super(null);
    }

    public static CmdSource obtain(SDKSourceType sDKSourceType) {
        CmdSource cmdSourceObtain = sPool.obtain();
        if (cmdSourceObtain == null) {
            cmdSourceObtain = new CmdSource();
        }
        cmdSourceObtain.mType = sDKSourceType;
        return cmdSourceObtain;
    }

    public static CmdSource obtain(SDKSourceType sDKSourceType, Object obj) {
        CmdSource cmdSourceObtain = obtain(sDKSourceType);
        cmdSourceObtain.setData(obj);
        return cmdSourceObtain;
    }

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

    public void setType(SDKSourceType sDKSourceType) {
        this.mType = sDKSourceType;
    }
}
