The New Jersey Department of Corrections has agreed to a $20.8 million settlement in a class action suit over sexual abuse and harassment of inmates in a state prison for women.

The case was patterned after the hostile work environment claims commonly seen in workplace sexual harassment suits but is believed to be the first in the state to obtain relief for a hostile living environment in a corrections facility.