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

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

    private CmdSharp() {
        super(null);
    }

    public static CmdSharp obtain(SDKSharpType sDKSharpType) {
        CmdSharp cmdSharpObtain = sPool.obtain();
        if (cmdSharpObtain == null) {
            cmdSharpObtain = new CmdSharp();
        }
        cmdSharpObtain.mType = sDKSharpType;
        return cmdSharpObtain;
    }

    public static CmdSharp obtain(SDKSharpType sDKSharpType, Object obj) {
        CmdSharp cmdSharpObtain = obtain(sDKSharpType);
        cmdSharpObtain.setData(obj);
        return cmdSharpObtain;
    }

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

    public void setType(SDKSharpType sDKSharpType) {
        this.mType = sDKSharpType;
    }
}
