@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        final Command other = (Command)obj;
        if (commandId != other.commandId)
            return false;
        if (commandLength != other.commandLength)
            return false;
        if (commandStatus != other.commandStatus)
            return false;
        if (sequenceNumber != other.sequenceNumber)
            return false;
        return true;
    }