Added parameter checks and final attributes to the FloodUtil class.