Creating Generic Methods

PowerDesigner allows you to designate operations as generic methods. Generic methods are methods that have their own list of type variables.

  1. Open the property sheet of the class or interface and click on its Operations tab.
  2. Click the Add a Row tool to create a new operation, and then click the Properties tool to open its property sheet.
  3. Click Yes to confirm the creation of the operation, and then select the Generic checkbox on the General tab of the new operation property sheet to designate the operation as a generic method. The Generic tab will be automatically displayed, and a type variable created in the list in the tab.
  4. Add any additional type variables that you require with the Add a Row tool, and then click OK.