O'Reilly logo
  • Shayne Riley thinks this is interesting:

There are three techniques for shortening overly long parameter lists.

From

Cover of Effective Java, 2nd Edition

Note

  1. Break method into multiple methods (not carelessly though)
  2. Create helper classes to hold groups of parameters (usually static member classes)
  3. Use the Builder pattern.