Detectives and investigators in the Mercer County Prosecutor’s Office have won a new contract that calls for a 7 percent pay raise spread over a four-year period.

A state appeals court on Monday affirmed a decision by the Public Employment Relations Commission to adopt an arbitrator’s award, dispensing with objections that it was arbitrary and capricious and did not take fully into account the fiscal impact on taxpayers.