If the number of candidates who filed nomination petitions for a particular party office exactly equals the number of persons who are to be elected to such office, no party primary with respect to such office shall be held, and, in such a case, the Supervisor of Elections shall declare the candidates who filed the petitions to be elected to such party office.