Introduce Parameter Object

A technique to reduce the number of input parameters to a method. To introduce a parameter object:

  • Pick a name for the object that represents the grouped parameters.
  • Replace method’s grouped parameters with the object.